From: Azat Khuzhin Date: Tue, 12 Mar 2019 21:20:25 +0000 (+0300) Subject: http: suppress -Wwrite-string in evhttp_parse_query_impl() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf19462a551f8d6e9dd3f5967905a7ff14e8f39c;p=libevent http: suppress -Wwrite-string in evhttp_parse_query_impl() --- 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 {