summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzat Khuzhin <azat@libevent.org>2019-03-13 00:20:25 +0300
committerAzat Khuzhin <azat@libevent.org>2019-03-13 00:21:38 +0300
commitbf19462a551f8d6e9dd3f5967905a7ff14e8f39c (patch)
treef6dbc68c492d93a012d124b39fbfac8d17981b44
parent42d5a36bd8076c137545759d34500401627a649b (diff)
downloadlibevent-bf19462a551f8d6e9dd3f5967905a7ff14e8f39c.tar.gz
http: suppress -Wwrite-string in evhttp_parse_query_impl()
-rw-r--r--http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http.c b/http.c
index 1768781f..89e6afa2 100644
--- a/http.c
+++ b/http.c
@@ -3327,7 +3327,7 @@ evhttp_parse_query_impl(const char *str, struct evkeyvalq *headers,
key = strsep(&value, "=");
if (flags & EVHTTP_URI_QUERY_NONCONFORMANT) {
if (value == NULL)
- value = "";
+ value = (char *)"";
if (*key == '\0')
continue;
} else {