Changeset 1be0d26 for protocols


Ignore:
Timestamp:
2010-03-13T00:12:07Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
286b28e
Parents:
7053379
Message:

Fixed handling of contact lists where at least the first contact is not in
any group yet. Crashing is not the right solution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/libyahoo2.c

    r7053379 r1be0d26  
    14941494                        if (cur_group)
    14951495                                newbud->group = strdup(cur_group);
    1496                         else {
     1496                        else if (yd->buddies) {
    14971497                                struct yahoo_buddy *lastbud =
    14981498                                        (struct yahoo_buddy *)y_list_nth(yd->
     
    15001500                                        y_list_length(yd->buddies) - 1)->data;
    15011501                                newbud->group = strdup(lastbud->group);
    1502                         }
     1502                        } else
     1503                                newbud->group = strdup("Buddies");
    15031504
    15041505                        yd->buddies = y_list_append(yd->buddies, newbud);
Note: See TracChangeset for help on using the changeset viewer.