DVCA: init string literals to empty just to be shure. hopefully silences valgrind...
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 5 Mar 2012 18:46:26 +0000 (19:46 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 5 Mar 2012 18:46:26 +0000 (19:46 +0100)
citadel/modules/vcard/serv_vcard.c

index 6684877b8576476821a1eba2604c22a2c7b11a2b..07b33336cc22904369ac16e486bef82c4fb48dc8 100644 (file)
@@ -1053,9 +1053,9 @@ void dvca_mime_callback(char *name, char *filename, char *partnum, char *disp,
                char *cbid, void *cbuserdata) {
 
        struct vCard *v;
-       char displayname[256];
+       char displayname[256] = "";
        int displayname_len;
-       char emailaddr[256];
+       char emailaddr[256] = "";
        int i;
        int has_commas = 0;