summaryrefslogtreecommitdiff
path: root/src/emap/lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/lang.c')
-rw-r--r--src/emap/lang.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/lang.c b/src/emap/lang.c
index 60259da..2cd838e 100644
--- a/src/emap/lang.c
+++ b/src/emap/lang.c
@@ -205,6 +205,8 @@ const char* lang_pctrans(const char *str, TBL_PC *sd)
int lang_getId(const char *str)
{
+ if (!str)
+ return -1;
char *str1 = aStrdup(str);
char *str2 = NULL;
int f;