diff options
-rw-r--r-- | src/writeout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writeout.c b/src/writeout.c index 14ba41b92..9aab77184 100644 --- a/src/writeout.c +++ b/src/writeout.c @@ -108,7 +108,7 @@ void ourWriteOut(CURL *curl, const char *writeinfo) long longinfo; double doubleinfo; - while(*ptr) { + while(ptr && *ptr) { if('%' == *ptr) { if('%' == ptr[1]) { /* an escaped %-letter */ |