Mercurial > pidgin
diff src/protocols/oscar/locate.c @ 7301:0ed0ac132b1b
[gaim-migrate @ 7885]
Fix a little bug where if someone has info set, then they set their
info to nothing, Gaim thinks the person still has the old info.
Also fix a crash, I'm not really sure why it wasn't crashing Sean,
but it makes more sense this way.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 19 Oct 2003 05:54:41 +0000 |
parents | ad243bc63184 |
children | be7c1468c6a7 |
line wrap: on
line diff
--- a/src/protocols/oscar/locate.c Sun Oct 19 02:01:06 2003 +0000 +++ b/src/protocols/oscar/locate.c Sun Oct 19 05:54:41 2003 +0000 @@ -217,7 +217,7 @@ cur->iconcsumlen = userinfo->iconcsumlen; } - if ((userinfo->info != NULL) && (userinfo->info_len > 0)) { + if (userinfo->info != NULL) { free(cur->info); free(cur->info_encoding); cur->info = (char *)malloc(userinfo->info_len); @@ -226,7 +226,7 @@ cur->info_len = userinfo->info_len; } - if ((userinfo->away != NULL) && (userinfo->away_len > 0)) { + if (userinfo->away != NULL) { free(cur->away); free(cur->away_encoding); cur->away = (char *)malloc(userinfo->away_len);