From 091baaf1fa338e54d2f2f2739788d6fb864f0e24 Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Mon, 6 Nov 2023 06:36:37 -0500 Subject: [PATCH] ping: remove variable reinitialization --- src/ping.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ping.c b/src/ping.c index fc66c80..7daecaf 100644 --- a/src/ping.c +++ b/src/ping.c @@ -22,8 +22,8 @@ int handle_ping_reply(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, } void xmppipe_ping(xmppipe_state_t *state) { - xmpp_stanza_t *iq = NULL; - xmpp_stanza_t *ping = NULL; + xmpp_stanza_t *iq; + xmpp_stanza_t *ping; iq = xmppipe_stanza_new(state->ctx); xmppipe_stanza_set_name(iq, "iq");