From 6dca1575b09b1a9cf556c29e3c6250d81ba5237d Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 26 Jan 2012 00:13:01 +0100 Subject: [PATCH] ListSubscriber: initialize vars --- citadel/modules/listsub/serv_listsub.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/citadel/modules/listsub/serv_listsub.c b/citadel/modules/listsub/serv_listsub.c index 19fe74ee6..495fc0f9a 100644 --- a/citadel/modules/listsub/serv_listsub.c +++ b/citadel/modules/listsub/serv_listsub.c @@ -379,18 +379,16 @@ void do_confirm(char *room, char *token) { int line_length; char buf[512]; char cmd[256]; - char email[256]; + char email[256] = ""; char subtype[128]; int success = 0; - char address_to_unsubscribe[256]; + char address_to_unsubscribe[256] = ""; char scancmd[256]; char scanemail[256]; char *holdbuf = NULL; int linelen = 0; int buflen = 0; - strcpy(address_to_unsubscribe, ""); - if (CtdlGetRoom(&qrbuf, room) != 0) { cprintf("%d There is no list called '%s'\n", ERROR + ROOM_NOT_FOUND, room); -- 2.30.2