# HG changeset patch # User Stu Tomlinson # Date 1176298480 0 # Node ID 9fb7f9413174282b637d7125d30d47946a16c2f8 # Parent e1cd60075d08a4804dbd6b4aafc64cb3e730d114 Avoid a possible NULL pointer dereference diff -r e1cd60075d08 -r 9fb7f9413174 libpurple/protocols/sametime/sametime.c --- a/libpurple/protocols/sametime/sametime.c Wed Apr 11 13:34:17 2007 +0000 +++ b/libpurple/protocols/sametime/sametime.c Wed Apr 11 13:34:40 2007 +0000 @@ -4347,9 +4347,9 @@ PurpleConnection *gc; struct mwPurplePluginData *pd; - if (data) { - buddy = data->buddy; - } + g_return_if_fail(data != NULL); + + buddy = data->buddy; gc = purple_account_get_connection(buddy->account); pd = gc->proto_data;