Changeset 5588edf5


Ignore:
Timestamp:
2010-07-25T08:56:17Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
51a3d12
Parents:
42acba1
Message:

Suppress GLib warning when trying to get a user's IP address while not any
IP information is available (yet).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    r42acba1 r5588edf5  
    22262226                }
    22272227        }
    2228         if ((ip = (long) g_hash_table_lookup(od->ips, &info->uin)) != 0) {
     2228        if (od->ips && (ip = (long) g_hash_table_lookup(od->ips, &info->uin)) != 0) {
    22292229                g_string_append_printf(str, "\n%s: %d.%d.%d.%d", _("Last used IP address"),
    22302230                                       (ip >> 24), (ip >> 16) & 0xff, (ip >> 8) & 0xff, ip & 0xff);
Note: See TracChangeset for help on using the changeset viewer.