diff options
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -286,6 +286,9 @@ static CURLcode setstropt_userpwd(char *option, char **user_storage, char* separator; CURLcode result = CURLE_OK; + if(!option) + return result; + separator = strchr(option, ':'); if (separator != NULL) { |