[evolution-patches] gnome-spell: set language fix (#42804)



Attached patch allows gnome-spell clients to set NULL language and so
fixes evo crash.

Index: dictionary.c
===================================================================
RCS file: /cvs/gnome/gnome-spell/gnome-spell/dictionary.c,v
retrieving revision 1.32
diff -u -p -r1.32 dictionary.c
--- dictionary.c	7 Apr 2003 17:51:00 -0000	1.32
+++ dictionary.c	13 May 2003 17:49:06 -0000
@@ -301,7 +301,8 @@ impl_gnome_spell_dictionary_set_language
 	gint len;
 
 	g_assert (dict);
-	g_assert (language);
+	if (!language)
+		language = "";
 
 	DICT_DEBUG (printf ("setLanguage: %s\n", language));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]