aboutsummaryrefslogtreecommitdiff
path: root/lib/imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/imap.c')
-rw-r--r--lib/imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/imap.c b/lib/imap.c
index 1666a5cf8..e4185a3a1 100644
--- a/lib/imap.c
+++ b/lib/imap.c
@@ -2314,7 +2314,7 @@ static CURLcode imap_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 != '=')