comparison src/html.c @ 4757:c4ebe1a8484b

[gaim-migrate @ 5074] this fixes a bunch of little things, as well as a few big things, plugs a few leaks, and makes the new buddy icon cache stuff much cooler. enjoy! committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 14 Mar 2003 01:14:24 +0000
parents d19872836812
children e23a7e166680
comparison
equal deleted inserted replaced
4756:85637881b342 4757:c4ebe1a8484b
48 { 48 {
49 int i, j, k; 49 int i, j, k;
50 int visible = 1; 50 int visible = 1;
51 gchar *text2 = g_strdup(text); 51 gchar *text2 = g_strdup(text);
52 52
53 g_return_val_if_fail(text != NULL, NULL); 53 if(!text)
54 return NULL;
54 55
55 for (i = 0, j = 0; text2[i]; i++) { 56 for (i = 0, j = 0; text2[i]; i++) {
56 if (text2[i] == '<') { 57 if (text2[i] == '<') {
57 k = i + 1; 58 k = i + 1;
58 while (text2[k]) { 59 while (text2[k]) {