changeset 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 049822b93239
children cf2f2450f7cc
files src/gtkspell.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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);