mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
gopher: remove check for path == NULL
Since it can't be NULL and it makes Coverity believe we lack proper NULL
checks. Verified by test 659, landed in commit 15401fa886
.
Pointed out by Coverity CID 1442746.
Assisted-by: Dan Fandrich
Fixes #3617
Closes #3642
This commit is contained in:
parent
dd7d7107c7
commit
39c29626cb
@ -88,7 +88,10 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)
|
|||||||
|
|
||||||
*done = TRUE; /* unconditionally */
|
*done = TRUE; /* unconditionally */
|
||||||
|
|
||||||
if(path && query)
|
/* path is guaranteed non-NULL */
|
||||||
|
DEBUGASSERT(path);
|
||||||
|
|
||||||
|
if(query)
|
||||||
gopherpath = aprintf("%s?%s", path, query);
|
gopherpath = aprintf("%s?%s", path, query);
|
||||||
else
|
else
|
||||||
gopherpath = strdup(path);
|
gopherpath = strdup(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user