From a2289b75e15bb53a7af9cd1bf41656749e358fcf Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 16 Jun 2015 02:14:19 -0400 Subject: [PATCH] Code cleanup --- tools/settings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/settings.c b/tools/settings.c index 6951293..675cb25 100644 --- a/tools/settings.c +++ b/tools/settings.c @@ -177,7 +177,7 @@ static int _settings_browse_folder(Settings * settings, Config * config, { const char ext[8] = ".desktop"; const char section[] = "Desktop Entry"; - const char type[] = "Application"; + const char application[] = "Application"; const int flags = GTK_ICON_LOOKUP_FORCE_SIZE; const gint iconsize = 48; GtkIconTheme * theme; @@ -230,7 +230,7 @@ static int _settings_browse_folder(Settings * settings, Config * config, exec = config_get(config, section, "Exec"); if(p == NULL || name == NULL || exec == NULL) continue; - if(strcmp(p, type) != 0) + if(strcmp(p, application) != 0) continue; if((p = config_get(config, section, "Categories")) == NULL || string_find(p, "Settings") == NULL)