From b249e227e273f3fa8962d0baebda7bb1c91ed796 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 23 Dec 2012 16:19:57 +0100 Subject: [PATCH] Code cleanup --- src/desktop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/desktop.c b/src/desktop.c index 096085f..7fa4d20 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -1048,6 +1048,7 @@ static int _current_loop_applications(Desktop * desktop) struct dirent * de; size_t len; const char ext[] = ".desktop"; + const char section[] = "Desktop Entry"; char * path = NULL; char * p; Config * config; @@ -1083,8 +1084,7 @@ static int _current_loop_applications(Desktop * desktop) config_reset(config); if(config_load(config, path) != 0) continue; - if((q = config_get(config, "Desktop Entry", "Categories")) - == NULL) + if((q = config_get(config, section, "Categories")) == NULL) continue; if(string_find(q, desktop->category->category) == NULL) continue;