Skip to content

Commit

Permalink
vcardparser.c: silence uninitialized variables complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison committed Jan 3, 2024
1 parent d1280b6 commit 7a11a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libicalvcard/vcardparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static int _parse_param_value(struct vcardparser_state *state)
int r;

vcardstructuredtype *structured = NULL;
vcardstrarray *field;
vcardstrarray *field = NULL;

if (vcardparameter_is_structured(state->param)) {
structured = vcardstructured_new();
Expand Down Expand Up @@ -636,7 +636,7 @@ static int _parse_prop_value(struct vcardparser_state *state)
int is_structured = (state->value_kind == VCARD_STRUCTURED_VALUE);
const char *text_sep = NULL;
vcardstructuredtype structured;
vcardstrarray *textlist;
vcardstrarray *textlist = NULL;
vcardvalue *value;

if (is_multivalued || is_structured) {
Expand Down

0 comments on commit 7a11a21

Please sign in to comment.