]> granicus.if.org Git - libevent/commitdiff
http: suppress -Wwrite-string in evhttp_parse_query_impl()
authorAzat Khuzhin <azat@libevent.org>
Tue, 12 Mar 2019 21:20:25 +0000 (00:20 +0300)
committerAzat Khuzhin <azat@libevent.org>
Tue, 12 Mar 2019 21:21:38 +0000 (00:21 +0300)
http.c

diff --git a/http.c b/http.c
index 1768781f8d12c33a73b8fad0f8c8f2c95d934170..89e6afa2d11c0e150db32b280097dfc9b2c40bf7 100644 (file)
--- 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 {