aboutsummaryrefslogtreecommitdiff
path: root/lib/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pop3.c')
-rw-r--r--lib/pop3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index d3f5a3d85..2fc4e4e88 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -1834,7 +1834,7 @@ static CURLcode pop3_parse_url_options(struct connectdata *conn)
const char *ptr = options;
bool reset = TRUE;
- while(*ptr) {
+ while(ptr && *ptr) {
const char *key = ptr;
while(*ptr && *ptr != '=')