]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fix false trigger of uninit var, detected using gcc v4.7.1 (compiling openelec tvh...
authorAdam Sutton <dev@adamsutton.me.uk>
Sun, 29 Jul 2012 19:37:00 +0000 (20:37 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Sun, 29 Jul 2012 19:37:00 +0000 (20:37 +0100)
src/htsp.c

index b9fc3e17db9be8168c99ec8bfe78ccf5bdc02129..ae5bd51f6d2fc99b015ee0be48f76be8196fa14f 100644 (file)
@@ -1160,7 +1160,7 @@ htsp_read_message(htsp_connection_t *htsp, htsmsg_t **mp, int timeout)
 static int
 htsp_read_loop(htsp_connection_t *htsp)
 {
-  htsmsg_t *m, *reply;
+  htsmsg_t *m = NULL, *reply;
   int r, i;
   const char *method;