From 59e043c592a92e7ff8c5044d3bb8164b137addd8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 12 Feb 2019 16:15:12 +0100 Subject: [PATCH] urlglob: Argument with 'nonnull' attribute passed null Detected by scan-build. --- src/tool_urlglob.c | 4 ++-- 1 file 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, , 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;