From: Adam Sutton Date: Sun, 29 Jul 2012 19:37:00 +0000 (+0100) Subject: Fix false trigger of uninit var, detected using gcc v4.7.1 (compiling openelec tvh... X-Git-Tag: 3.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26569fc3e93232b82ef3f4a85a4b2711ee6db906;p=thirdparty%2Ftvheadend.git Fix false trigger of uninit var, detected using gcc v4.7.1 (compiling openelec tvh add-on), reported by seo. --- diff --git a/src/htsp.c b/src/htsp.c index b9fc3e17d..ae5bd51f6 100644 --- a/src/htsp.c +++ b/src/htsp.c @@ -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;