Skip to content

Commit 131d8f5

Browse files
committed
vcardparser.c: debugging fprintf for PE_MISMATCHED_CARD
1 parent 2bdeddc commit 131d8f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/libicalvcard/vcardparser.c

+3
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,7 @@ static int _parse_vcard(struct vcardparser_state *state,
883883

884884
if (kind == VCARD_NO_COMPONENT) {
885885
state->itemstart = cardstart;
886+
fprintf(stderr, "BEGIN with unknown kind\n");
886887
r = PE_MISMATCHED_CARD;
887888
break;
888889
}
@@ -898,6 +899,7 @@ static int _parse_vcard(struct vcardparser_state *state,
898899
else if (!comp) {
899900
/* no comp means we're at the top level, haven't seen a BEGIN! */
900901
state->itemstart = cardstart;
902+
fprintf(stderr, "toplevel with no BEGIN\n");
901903
r = PE_MISMATCHED_CARD;
902904
break;
903905
}
@@ -910,6 +912,7 @@ static int _parse_vcard(struct vcardparser_state *state,
910912
/* special case mismatched card, the "start" was the start of
911913
* the card */
912914
state->itemstart = cardstart;
915+
fprintf(stderr, "BEGIN comp != END\n");
913916
r = PE_MISMATCHED_CARD;
914917
}
915918

0 commit comments

Comments
 (0)