From 26569fc3e93232b82ef3f4a85a4b2711ee6db906 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Sun, 29 Jul 2012 20:37:00 +0100 Subject: [PATCH] Fix false trigger of uninit var, detected using gcc v4.7.1 (compiling openelec tvh add-on), reported by seo. --- src/htsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/htsp.c b/src/htsp.c index b9fc3e17..ae5bd51f 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;