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:
committed by
mrovi9000@gmail.com
parent
c392cdf257
commit
f0e2e72efc
@@ -157,6 +157,7 @@ void add_entry (char *key, char *value)
|
|||||||
if (strcmp (key, "rounded") == 0) {
|
if (strcmp (key, "rounded") == 0) {
|
||||||
// 'rounded' is the first parameter => alloc a new background
|
// 'rounded' is the first parameter => alloc a new background
|
||||||
Background bg;
|
Background bg;
|
||||||
|
memset(&bg, 0, sizeof(bg));
|
||||||
bg.border.rounded = atoi(value);
|
bg.border.rounded = atoi(value);
|
||||||
g_array_append_val(backgrounds, bg);
|
g_array_append_val(backgrounds, bg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user