From 5588edf5779d449f0f1ed1b2ef6f2af510d92632 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sun, 25 Jul 2010 10:56:17 +0200 Subject: Suppress GLib warning when trying to get a user's IP address while not any IP information is available (yet). --- protocols/oscar/oscar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/oscar/oscar.c b/protocols/oscar/oscar.c index 51382a61..87fa3323 100644 --- a/protocols/oscar/oscar.c +++ b/protocols/oscar/oscar.c @@ -2225,7 +2225,7 @@ static int gaim_icqinfo(aim_session_t *sess, aim_frame_t *fr, ...) g_string_append_printf(str, "\n%s: %s", _("Email Address"), info->email2[i]); } } - if ((ip = (long) g_hash_table_lookup(od->ips, &info->uin)) != 0) { + if (od->ips && (ip = (long) g_hash_table_lookup(od->ips, &info->uin)) != 0) { g_string_append_printf(str, "\n%s: %d.%d.%d.%d", _("Last used IP address"), (ip >> 24), (ip >> 16) & 0xff, (ip >> 8) & 0xff, ip & 0xff); } -- cgit v1.2.3