src/gtkspell.c

changeset 2461
f0fc89bc6f8d
parent 2457
1b507a97b824
child 2517
b61cca95c708
--- a/src/gtkspell.c	Tue Oct 09 19:18:41 2001 +0000
+++ b/src/gtkspell.c	Tue Oct 09 19:24:16 2001 +0000
@@ -255,6 +255,9 @@
 	GList *l = NULL;
 	int count;
 
+	if (!word)
+		return NULL;
+
 	buf = g_strdup_printf("^%s\n", word); /* guard against ispell control chars */
 	writetext(buf);
 	g_free(buf);

mercurial