Mercurial > pidgin
changeset 8394:a41efeb3a9ee
[gaim-migrate @ 9123]
"Listen to them! They're dying, R2! Curse my metal body - I wasn't fast enough!
It's all my fault! My poor Master!"
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 03 Mar 2004 07:30:56 +0000 |
parents | 8deb49dea682 |
children | 09083081643a |
files | src/protocols/oscar/locate.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/locate.c Wed Mar 03 07:23:30 2004 +0000 +++ b/src/protocols/oscar/locate.c Wed Mar 03 07:30:56 2004 +0000 @@ -244,7 +244,8 @@ if (userinfo->info_len > 0) { cur->info = (char *)malloc(userinfo->info_len); memcpy(cur->info, userinfo->info, userinfo->info_len); - } + } else + cur->info = NULL; cur->info_encoding = strdup(userinfo->info_encoding); cur->info_len = userinfo->info_len; } @@ -255,7 +256,8 @@ if (userinfo->away_len > 0) { cur->away = (char *)malloc(userinfo->away_len); memcpy(cur->away, userinfo->away, userinfo->away_len); - } + } else + cur->away = NULL; cur->away_encoding = strdup(userinfo->away_encoding); cur->away_len = userinfo->away_len; }