Skip to content

Commit

Permalink
vcardparser.c: print BEGIN/END values
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison committed Apr 26, 2024
1 parent 669efce commit b3edb44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libicalvcard/vcardparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,7 @@ static int _parse_vcard(struct vcardparser_state *state,
const char *val =
vcardvalue_get_text(vcardproperty_get_value(state->prop));
vcardcomponent_kind kind = vcardcomponent_string_to_kind(val);
fprintf(stderr, "BEGIN val: '%s'\n", val);

if (kind == VCARD_NO_COMPONENT) {
state->itemstart = cardstart;
Expand Down Expand Up @@ -907,6 +908,7 @@ static int _parse_vcard(struct vcardparser_state *state,
const char *val =
vcardvalue_get_text(vcardproperty_get_value(state->prop));
vcardcomponent_kind kind = vcardcomponent_string_to_kind(val);
fprintf(stderr, "END val: '%s'\n", val);

if (kind != vcardcomponent_isa(comp)) {
/* special case mismatched card, the "start" was the start of
Expand Down

0 comments on commit b3edb44

Please sign in to comment.