# HG changeset patch
# User Eric Warmenhoven <eric@warmenhoven.org>
# Date 1002655456 0
# Node ID 0edec72bc72f3f4a3fd38ca5fbb20de0b0035bb6
# Parent  049822b9323911f5c9f6efcf2722ab8fbc79b5e0
[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>

diff -r 049822b93239 -r 0edec72bc72f src/gtkspell.c
--- 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);