summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-02-12 16:15:12 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-02-13 08:06:34 +0100
commit59e043c592a92e7ff8c5044d3bb8164b137addd8 (patch)
treee1d7246a8e5341b22f8a2756527e4510f048d76c /src
parent06480704238105bebf696e1f0f49b11c65a30b6f (diff)
downloadcurl-59e043c592a92e7ff8c5044d3bb8164b137addd8.tar.gz
urlglob: Argument with 'nonnull' attribute passed null
Detected by scan-build.
Diffstat (limited to 'src')
-rw-r--r--src/tool_urlglob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c
index babae0416..e9007b2b4 100644
--- a/src/tool_urlglob.c
+++ b/src/tool_urlglob.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -603,7 +603,7 @@ CURLcode glob_match_url(char **result, char *filename, URLGlob *glob)
char *target;
size_t allocsize;
char numbuf[18];
- char *appendthis = NULL;
+ char *appendthis = (char *)"";
size_t appendlen = 0;
size_t stringlen = 0;