ListSubscriber: initialize vars
authorWilfried Goesgens <dothebart@citadel.org>
Wed, 25 Jan 2012 23:13:01 +0000 (00:13 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Wed, 25 Jan 2012 23:13:01 +0000 (00:13 +0100)
citadel/modules/listsub/serv_listsub.c

index 19fe74ee62507a8b2d245032ed522d0714cfae44..495fc0f9aed1582d696df88a8e830b835bf382ca 100644 (file)
@@ -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);