remove useless checks

This commit is contained in:
Julien Danjou 2007-12-29 21:37:12 +01:00
parent 11a4ecc32a
commit 814b66fddb
1 changed files with 0 additions and 4 deletions

View File

@ -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())