comparison libpurple/protocols/sametime/sametime.c @ 16060:9fb7f9413174

Avoid a possible NULL pointer dereference
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 11 Apr 2007 13:34:40 +0000
parents 32c366eeeb99
children 391a79778f89 08db93bbd798
comparison
equal deleted inserted replaced
16059:e1cd60075d08 16060:9fb7f9413174
4345 BuddyAddData *data = b; 4345 BuddyAddData *data = b;
4346 PurpleBuddy *buddy = NULL; 4346 PurpleBuddy *buddy = NULL;
4347 PurpleConnection *gc; 4347 PurpleConnection *gc;
4348 struct mwPurplePluginData *pd; 4348 struct mwPurplePluginData *pd;
4349 4349
4350 if (data) { 4350 g_return_if_fail(data != NULL);
4351 buddy = data->buddy; 4351
4352 } 4352 buddy = data->buddy;
4353 4353
4354 gc = purple_account_get_connection(buddy->account); 4354 gc = purple_account_get_connection(buddy->account);
4355 pd = gc->proto_data; 4355 pd = gc->proto_data;
4356 4356
4357 if(results) 4357 if(results)