summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/localcharset.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/localcharset.c b/lib/localcharset.c
index 86f7ed1b2..e80a2c523 100644
--- a/lib/localcharset.c
+++ b/lib/localcharset.c
@@ -132,7 +132,8 @@ get_charset_aliases ()
}
charset_aliases = cp;
- free (file_name);
+ if (file_name != NULL)
+ free (file_name);
}
return cp;