diff src/gtkspell.c @ 2461:0edec72bc72f

[gaim-migrate @ 2474] be more assertive. this was a bug in gtkspell even before my patch, i think; it's just easier to check with my patch ;) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 09 Oct 2001 19:24:16 +0000
parents e6b9246b33fd
children 9cee43e4903d
line wrap: on
line diff
--- 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);