Skip to content

Commit

Permalink
vcardparser.c: debugging fprintf for PE_MISMATCHED_CARD
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison committed Apr 25, 2024
1 parent 2bdeddc commit 131d8f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libicalvcard/vcardparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ static int _parse_vcard(struct vcardparser_state *state,

if (kind == VCARD_NO_COMPONENT) {
state->itemstart = cardstart;
fprintf(stderr, "BEGIN with unknown kind\n");
r = PE_MISMATCHED_CARD;
break;
}
Expand All @@ -898,6 +899,7 @@ static int _parse_vcard(struct vcardparser_state *state,
else if (!comp) {
/* no comp means we're at the top level, haven't seen a BEGIN! */
state->itemstart = cardstart;
fprintf(stderr, "toplevel with no BEGIN\n");
r = PE_MISMATCHED_CARD;
break;
}
Expand All @@ -910,6 +912,7 @@ static int _parse_vcard(struct vcardparser_state *state,
/* special case mismatched card, the "start" was the start of
* the card */
state->itemstart = cardstart;
fprintf(stderr, "BEGIN comp != END\n");
r = PE_MISMATCHED_CARD;
}

Expand Down

0 comments on commit 131d8f5

Please sign in to comment.