From 814b66fddbb6a0972f06e1e19b01e552e7c81f5b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 29 Dec 2007 21:37:12 +0100 Subject: [PATCH] remove useless checks --- config.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/config.c b/config.c index a1e8c0dc6..e3220f424 100644 --- a/config.c +++ b/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())