Fix issue 347: always initialize backgrounds

git-svn-id: http://tint2.googlecode.com/svn/trunk@681 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000 2015-02-01 23:09:33 +00:00 committed by mrovi9000@gmail.com
parent c392cdf257
commit f0e2e72efc

View file

@ -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);
}