From 8fba8a8958146a0fa42d649339b66604defd6297 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 30 Jan 2020 12:35:49 +0100 Subject: [PATCH] fix: Initialize variable in stanza_get_oldest_delay() --- src/xmpp/stanza.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c index 9c6aecb6..3a8d2b56 100644 --- a/src/xmpp/stanza.c +++ b/src/xmpp/stanza.c @@ -1277,7 +1277,7 @@ stanza_get_oldest_delay(xmpp_stanza_t *const stanza) { xmpp_stanza_t *child; const char *child_name; - GDateTime* oldest; + GDateTime* oldest = NULL; for (child = xmpp_stanza_get_children(stanza); child; child = xmpp_stanza_get_next(child)) {