]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
http: fix compiler warning, fixes #2871
authorstbenz <benz.st@gmail.com>
Fri, 22 May 2015 21:04:34 +0000 (23:04 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 26 May 2015 15:10:26 +0000 (17:10 +0200)
src/http.c

index 00bd930cd50a69049d84d972bbc339c674841033..205a992de28d0c42f9fa1b0a0a377e0854f7661a 100644 (file)
@@ -319,7 +319,7 @@ int
 http_encoding_valid(http_connection_t *hc, const char *encoding)
 {
   const char *accept;
-  char *tokbuf, *tok, *saveptr, *q, *s;
+  char *tokbuf, *tok, *saveptr = NULL, *q, *s;
 
   accept = http_arg_get(&hc->hc_args, "accept-encoding");
   if (!accept)