Mercurial > pidgin.yaz
changeset 16776:9a2ec0a033b5
Fix a crash if userinfo->itmsurl is NULL on Windows / OS X
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Wed, 02 May 2007 00:56:11 +0000 |
parents | be5948b7f9e6 |
children | 1de66d5d1de8 71f6852c7c41 52342adf4303 a9975d6c2832 7c0a2ef88018 |
files | libpurple/protocols/oscar/oscar.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/oscar/oscar.c Wed May 02 00:25:09 2007 +0000 +++ b/libpurple/protocols/oscar/oscar.c Wed May 02 00:56:11 2007 +0000 @@ -2871,7 +2871,7 @@ tmp = oscar_encoding_to_utf8(userinfo->status_encoding, userinfo->status, userinfo->status_len); #if defined (_WIN32) || defined (__APPLE__) - if (userinfo->itmsurl[0] != '\0') { + if (userinfo->itmsurl && (userinfo->itmsurl[0] != '\0')) { gchar *itmsurl, *tmp2; itmsurl = oscar_encoding_to_utf8(userinfo->itmsurl_encoding, userinfo->itmsurl, userinfo->itmsurl_len);