aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-25 10:56:17 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-25 10:56:17 +0200
commit5588edf5779d449f0f1ed1b2ef6f2af510d92632 (patch)
tree52d82896b7f7b132712ee56e465bcd65fb431ec5
parent42acba19c3d3911a157cda31b18508e1d40680d4 (diff)
Suppress GLib warning when trying to get a user's IP address while not any
IP information is available (yet).
-rw-r--r--protocols/oscar/oscar.c2
1 files changed, 1 insertions, 1 deletions
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);
}