From f0e2e72efc98f73cfa3ad19e7c99abeb71eebd1a Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 1 Feb 2015 23:09:33 +0000 Subject: [PATCH] Fix issue 347: always initialize backgrounds git-svn-id: http://tint2.googlecode.com/svn/trunk@681 121b4492-b84c-0410-8b4c-0d4edfb3f3cc --- src/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.c b/src/config.c index d016bea..8b000bf 100644 --- a/src/config.c +++ b/src/config.c @@ -157,6 +157,7 @@ void add_entry (char *key, char *value) if (strcmp (key, "rounded") == 0) { // 'rounded' is the first parameter => alloc a new background Background bg; + memset(&bg, 0, sizeof(bg)); bg.border.rounded = atoi(value); g_array_append_val(backgrounds, bg); }