Mercurial > pidgin.yaz
diff src/protocols/msn/object.c @ 10116:9f358a718f38
[gaim-migrate @ 11153]
I went through every commit email on oldstatus since we branched, and merged
relevant things to HEAD that had only been applied on oldstatus.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Mon, 18 Oct 2004 19:02:33 +0000 |
parents | 9d839c9f6c2d |
children | 77ef3f2f0df8 |
line wrap: on
line diff
--- a/src/protocols/msn/object.c Mon Oct 18 17:25:25 2004 +0000 +++ b/src/protocols/msn/object.c Mon Oct 18 19:02:33 2004 +0000 @@ -28,9 +28,12 @@ { \ tag += strlen(id "=\""); \ c = strchr(tag, '"'); \ - if (obj->field != NULL) \ - g_free(obj->field); \ - obj->field = g_strndup(tag, c - tag); \ + if (c != NULL) \ + { \ + if (obj->field != NULL) \ + g_free(obj->field); \ + obj->field = g_strndup(tag, c - tag); \ + } \ } #define GET_INT_TAG(field, id) \