summaryrefslogtreecommitdiff
path: root/mate-dictionary
diff options
context:
space:
mode:
Diffstat (limited to 'mate-dictionary')
-rw-r--r--mate-dictionary/libgdict/gdict-utils.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mate-dictionary/libgdict/gdict-utils.c b/mate-dictionary/libgdict/gdict-utils.c
index 2a463f74..e47dfd2d 100644
--- a/mate-dictionary/libgdict/gdict-utils.c
+++ b/mate-dictionary/libgdict/gdict-utils.c
@@ -107,13 +107,11 @@ pre_parse_hook (GOptionContext *context,
gpointer data,
GError **error)
{
- const char *env_string;
-
if (gdict_is_initialized)
return TRUE;
#ifdef GDICT_ENABLE_DEBUG
- env_string = g_getenv ("GDICT_DEBUG");
+ const char *env_string = g_getenv ("GDICT_DEBUG");
if (env_string != NULL)
{
gdict_debug_flags =
@@ -121,8 +119,6 @@ pre_parse_hook (GOptionContext *context,
gdict_debug_keys,
G_N_ELEMENTS (gdict_debug_keys));
}
-#else
- env_string = NULL;
#endif /* GDICT_ENABLE_DEBUG */
return TRUE;