Fix unitialised access
authorColin Leroy <colin@colino.net>
Thu, 3 Mar 2016 20:14:59 +0000 (21:14 +0100)
committerColin Leroy <colin@colino.net>
Thu, 3 Mar 2016 20:14:59 +0000 (21:14 +0100)
src/prefs_gtk.c

index 2fce2f419fc9571c795a6185fc867ada0914ce21..ccab0a3ae4250bef532ddff09fb7c93d4a550ab1 100644 (file)
@@ -319,7 +319,7 @@ void prefs_write_config(PrefParam *param, const gchar *label,
 gint prefs_write_param(PrefParam *param, FILE *fp)
 {
        gint i;
-       gchar buf[PREFSBUFSIZE];
+       gchar buf[PREFSBUFSIZE] = "";
 
        for (i = 0; param[i].name != NULL; i++) {
                switch (param[i].type) {