# HG changeset patch # User Nathan Walp # Date 1044130407 0 # Node ID fdc4ac6d1db1eb5608e9fa8236b77f2116c082d4 # Parent 7a2e45719bd0a23b21c9e43455fc33fefc4b1507 [gaim-migrate @ 4778] strip_html shouldn't segfault when passed NULL committer: Tailor Script diff -r 7a2e45719bd0 -r fdc4ac6d1db1 src/html.c --- a/src/html.c Sat Feb 01 19:26:45 2003 +0000 +++ b/src/html.c Sat Feb 01 20:13:27 2003 +0000 @@ -50,6 +50,8 @@ int visible = 1; gchar *text2 = g_strdup(text); + g_return_val_if_fail(text != NULL, NULL); + for (i = 0, j = 0; text2[i]; i++) { if (text2[i] == '<') { k = i + 1;