aboutsummaryrefslogtreecommitdiffstats
path: root/ui/language.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/language.c')
-rw-r--r--ui/language.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/language.c b/ui/language.c
index 2bc721aafa..d8da1fef28 100644
--- a/ui/language.c
+++ b/ui/language.c
@@ -46,8 +46,7 @@ read_language_pref(gchar *key, const gchar *value,
void *private_data _U_, gboolean return_range_errors _U_)
{
if (strcmp(key, LANGUAGE_PREF_LANGUAGE) == 0) {
- if (language)
- g_free(language);
+ g_free(language);
/*
* For backwards compatibility, treat "auto" as meaning "use the
* system language".