mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
remove useless checks
This commit is contained in:
parent
11a4ecc32a
commit
814b66fddb
1 changed files with 0 additions and 4 deletions
4
config.c
4
config.c
|
@ -688,11 +688,7 @@ config_parse(const char *confpatharg)
|
|||
cfgsectmp = cfg_getnsec(cfg_rules, "rule", i);
|
||||
rule->prop = a_strdup(cfg_getstr(cfgsectmp, "name"));
|
||||
rule->tags = a_strdup(cfg_getstr(cfgsectmp, "tags"));
|
||||
if(!a_strlen(rule->tags))
|
||||
rule->tags = NULL;
|
||||
rule->icon = a_strdup(cfg_getstr(cfgsectmp, "icon"));
|
||||
if (!a_strlen(rule->icon))
|
||||
rule->icon = NULL;
|
||||
rule->isfloating = cfg_getbool(cfgsectmp, "float");
|
||||
rule->screen = cfg_getint(cfgsectmp, "screen");
|
||||
if(rule->screen >= get_screen_count())
|
||||
|
|
Loading…
Reference in a new issue