handler: shut compiler up

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.
This commit is contained in:
Dmitry Podgorny
2017-06-29 20:38:52 +03:00
parent e151096834
commit cc297eff45

View File

@@ -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 */