Mercurial > pidgin.yaz
diff src/protocols/oscar/oscar.c @ 10130:096197a628bf
[gaim-migrate @ 11193]
Small suggestions from Evan Schoenberg and a few whitespaces fixes.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 23 Oct 2004 14:59:27 +0000 |
parents | 9f358a718f38 |
children | 3cec08c6179c |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Thu Oct 21 18:42:29 2004 +0000 +++ b/src/protocols/oscar/oscar.c Sat Oct 23 14:59:27 2004 +0000 @@ -2881,6 +2881,9 @@ info = va_arg(ap, aim_userinfo_t *); va_end(ap); + g_return_val_if_fail(info != NULL, 1); + g_return_val_if_fail(info->sn != NULL, 1); + if (info->present & AIM_USERINFO_PRESENT_CAPABILITIES) caps = info->capabilities; @@ -4071,7 +4074,8 @@ va_end(ap); gaim_debug_error("oscar", - "Message error with data %s and reason %hu\n", data, reason); + "Message error with data %s and reason %hu\n", + (data != NULL ? data : ""), reason); /* BBB */ #if 0 @@ -4736,7 +4740,9 @@ va_end(ap); gaim_debug_info("oscar", - "Disconnected. Code is 0x%04x and msg is %s\n", code, msg); + "Disconnected. Code is 0x%04x and msg is %s\n", code, + (msg != NULL ? msg : "")); + if ((fr) && (fr->conn) && (fr->conn->type == AIM_CONN_TYPE_BOS)) { if (code == 0x0001) { gc->wants_to_die = TRUE;