Changeset eb89823


Ignore:
Timestamp:
2015-05-27T16:21:50Z (5 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Children:
b73409f
Parents:
2700925
Message:

Two more NULL-checks on add_buddy().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r2700925 reb89823  
    313313
    314314        if ((ic->acc->flags & ACC_FLAG_LOCAL_CONTACTS) &&
    315             !(ic->flags & OPT_LOCAL_CONTACTS_SENT)) {
     315            !(ic->flags & OPT_LOCAL_CONTACTS_SENT) &&
     316            ic->acc->prpl->add_buddy) {
    316317                GHashTableIter nicks;
    317318                gpointer handle;
     
    584585        struct imcb_ask_cb_data *cbd = data;
    585586
    586         cbd->ic->acc->prpl->add_buddy(cbd->ic, cbd->handle, NULL);
     587        if (cbd->ic->acc->prpl->add_buddy) {
     588                cbd->ic->acc->prpl->add_buddy(cbd->ic, cbd->handle, NULL);
     589        }
    587590
    588591        imcb_ask_cb_free(data);
Note: See TracChangeset for help on using the changeset viewer.