]> 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>
Sat, 23 May 2015 15:52:14 +0000 (17:52 +0200)
src/http.c

index 4575e1f0c2c9a34103356d9711bcd4148a1d3978..3d545234746c4d63fa902dae9fd13e44f1126733 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)