summaryrefslogtreecommitdiff
blob: 48a56c32921c16e1eb890a747354a211c2b8f7be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: gtk/compose.c
===================================================================
--- gtk/compose.c	(revision 6879)
+++ gtk/compose.c	(revision 6880)
@@ -621,7 +621,10 @@
     {
 	char *result;
 	result = g_locale_to_utf8(rhs_string_mb, -1, NULL, NULL, NULL);
-	rhs_string_utf8 = strdup(result);
+	if (!result)
+	    rhs_string_utf8 = strdup("");
+	else
+	    rhs_string_utf8 = strdup(result);
 	g_free(result);
     }