From cc297eff452385a0d1c832151558def03c07e45f Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Thu, 29 Jun 2017 20:38:52 +0300 Subject: [PATCH] handler: shut compiler up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the next warning: src/handler.c:683:25: error: ‘key2’ may be used uninitialized in this function [-Werror=uninitialized] In fact key2 initialised and used under the same condition. --- src/handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handler.c b/src/handler.c index a8983be..8a9e179 100644 --- a/src/handler.c +++ b/src/handler.c @@ -627,7 +627,7 @@ void handler_system_delete_all(xmpp_conn_t *conn) xmpp_handlist_t *item, *next, *head, *head_old; hash_iterator_t *iter; const char *key; - char *key2; + char *key2 = NULL; /* TODO unify all kinds of handlers and avoid copy-paste below */