summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gopher.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gopher.c b/lib/gopher.c
index 2b2683573..b296c62d1 100644
--- a/lib/gopher.c
+++ b/lib/gopher.c
@@ -79,7 +79,6 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)
struct Curl_easy *data = conn->data;
curl_socket_t sockfd = conn->sock[FIRSTSOCKET];
char *gopherpath;
- /* path is guaranteed non-NULL */
char *path = data->state.up.path;
char *query = data->state.up.query;
char *sel = NULL;
@@ -89,6 +88,9 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)
*done = TRUE; /* unconditionally */
+ /* path is guaranteed non-NULL */
+ DEBUGASSERT(path);
+
if(query)
gopherpath = aprintf("%s?%s", path, query);
else