From: Daniel Stenberg Date: Tue, 12 Feb 2019 15:15:12 +0000 (+0100) Subject: urlglob: Argument with 'nonnull' attribute passed null X-Git-Tag: curl-7_64_1~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59e043c592a92e7ff8c5044d3bb8164b137addd8;p=curl urlglob: Argument with 'nonnull' attribute passed null Detected by scan-build. --- 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, , et al. + * Copyright (C) 1998 - 2019, Daniel Stenberg, , 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;