Changeset 4757 for trunk/module-cccshare.c
- Timestamp:
- 02/26/11 18:09:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccshare.c
r4754 r4757 456 456 457 457 if (ll_count(card1->providers) != ll_count(card2->providers)) 458 return 0; 458 return 0; 459 if (ll_count(card1->providers) == 0) 460 return 1; 459 461 460 462 LL_ITER *it1 = ll_iter_create(card1->providers); … … 486 488 */ 487 489 int add_card_to_serverlist(LLIST *cardlist, struct cc_card *card) { 488 489 if (!ll_has_elements(card->providers)) { //No providers? Add null-provider:490 struct cc_provider *prov = cs_malloc(&prov, sizeof(struct cc_provider), QUITERROR);491 memset(prov, 0, sizeof(struct cc_provider));492 ll_append(card->providers, prov);493 }494 490 495 491 int modified = 0;
Note:
See TracChangeset
for help on using the changeset viewer.