Skip to content

Commit

Permalink
vcardcomponent.c: count ALL like-properties without ALTID
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison committed Apr 24, 2024
1 parent d838bc8 commit 72a7ec4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/libicalvcard/vcardcomponent.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,11 +338,13 @@ int vcardcomponent_count_properties(vcardcomponent *comp,
vcardparameter *param =
vcardproperty_get_first_parameter(prop,
VCARD_ALTID_PARAMETER);
const char *altid = param ? vcardparameter_get_altid(param) : "";
if (param) {
const char *altid =vcardparameter_get_altid(param);

if (vcardstrarray_find(altids, altid) != -1) continue;
if (vcardstrarray_find(altids, altid) != -1) continue;

vcardstrarray_append(altids, altid);
vcardstrarray_append(altids, altid);
}
}
count++;
}
Expand Down

0 comments on commit 72a7ec4

Please sign in to comment.