about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-21 16:19:35 +0200
committerMichael Vetter <jubalh@iodoru.org>2019-10-21 16:19:35 +0200
commit2292f15633071d6b109b50aae35e10fe3469582a (patch)
tree9cbc591063751e81581b62ebae6d34bc9249df79
parent40d9dcae87a7198b1dfcc5b8437728310c78ae70 (diff)
downloadprofani-tty-2292f15633071d6b109b50aae35e10fe3469582a.tar.gz
Make sure date vars are initialized
-rw-r--r--src/ui/chatwin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c
index df3849c0..cdd17f8d 100644
--- a/src/ui/chatwin.c
+++ b/src/ui/chatwin.c
@@ -467,9 +467,9 @@ _chatwin_history(ProfChatWin *chatwin, const char *const contact)
         GSList *history = chat_log_get_previous(jid->barejid, contact);
         jid_destroy(jid);
         GSList *curr = history;
-        int idd;
-        int imo;
-        int iyy;
+        int idd = 0;
+        int imo = 0;
+        int iyy = 0;
 
         while (curr) {
             char *line = curr->data;