Mercurial > pidgin.yaz
diff libpurple/util.c @ 20218:99ceb1329a5b
applied changes from 3fcc47961d378fa0cd4eeb00dc6923b16a3a4151
through c9d6104bcfe2e630e98e45bc6a0975adfb9544e5
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 28 Sep 2007 15:45:25 +0000 |
parents | 44b4e8bd759b |
children | 89e5492bcea4 |
line wrap: on
line diff
--- a/libpurple/util.c Fri Sep 28 15:45:06 2007 +0000 +++ b/libpurple/util.c Fri Sep 28 15:45:25 2007 +0000 @@ -1542,7 +1542,8 @@ while(*p && *p != '>') { if(!g_ascii_strncasecmp(p, "href=", strlen("href="))) { const char *q = p + strlen("href="); - g_string_free(url, TRUE); + if (url) + g_string_free(url, TRUE); url = g_string_new(""); cdata = g_string_new(""); if(*q == '\'' || *q == '\"')