Unverified Commit 39c29626 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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 15401fa8.

Pointed out by Coverity CID 1442746.

Assisted-by: Dan Fandrich
Fixes #3617
Closes #3642
parent dd7d7107
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -88,7 +88,10 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)

  *done = TRUE; /* unconditionally */

  if(path && query)
  /* path is guaranteed non-NULL */
  DEBUGASSERT(path);

  if(query)
    gopherpath = aprintf("%s?%s", path, query);
  else
    gopherpath = strdup(path);