Skip to content

Commit

Permalink
ARGH!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison committed Apr 26, 2024
1 parent 1020d7f commit ec84461
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libicalvcard/vcardparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ static int _parse_vcard(struct vcardparser_state *state,
const char *cardstart = state->p;
int r = 0;

fprintf(stderr, "parse vcard(%s)\n", cardstart);
while (*state->p) {
fprintf(stderr, "p: '%c'\n", *state->p);
/* whitespace is very skippable before AND afterwards */
Expand Down Expand Up @@ -898,6 +899,7 @@ fprintf(stderr, "BEGIN val: '%s'\n", val);
sub = vcardcomponent_new(kind);
vcardcomponent_add_component(comp, sub);
r = _parse_vcard(state, sub, /*only_one*/0);
fprintf(stderr, "returned from recursion\n");
if (r || only_one) break;
}
else if (!comp) {
Expand All @@ -919,7 +921,6 @@ fprintf(stderr, "END val: '%s'\n", val);
state->itemstart = cardstart;
fprintf(stderr, "BEGIN comp (%u) != END (%u)\n",
vcardcomponent_isa(comp), kind);
fprintf(stderr, "cardstart: '%s'\n", cardstart);
r = PE_MISMATCHED_CARD;
}

Expand Down

0 comments on commit ec84461

Please sign in to comment.