aboutsummaryrefslogtreecommitdiff
path: root/src/tool_getparam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r--src/tool_getparam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 1c92e053a..f18c9168e 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -1016,7 +1016,8 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
}
else {
GetStr(&postdata, nextarg);
- size = strlen(postdata);
+ if(postdata)
+ size = strlen(postdata);
}
#ifdef CURL_DOES_CONVERSIONS