config: Prevent segfault if panel_items appears late in the config file
This commit is contained in:
parent
e218b3fa96
commit
f68eabcf35
1 changed files with 5 additions and 0 deletions
|
@ -258,6 +258,11 @@ void add_entry (char *key, char *value)
|
|||
new_config_file = 1;
|
||||
panel_items_order = strdup(value);
|
||||
int j;
|
||||
systray_enabled = 0;
|
||||
launcher_enabled = 0;
|
||||
battery_enabled = 0;
|
||||
clock_enabled = 0;
|
||||
taskbar_enabled = 0;
|
||||
for (j=0 ; j < strlen(panel_items_order) ; j++) {
|
||||
if (panel_items_order[j] == 'L')
|
||||
launcher_enabled = 1;
|
||||
|
|
Loading…
Reference in a new issue