From 7a11a217420c4ca59bd0006d0a3ec589790b1a15 Mon Sep 17 00:00:00 2001 From: Ken Murchison Date: Wed, 3 Jan 2024 10:41:43 -0500 Subject: [PATCH] vcardparser.c: silence uninitialized variables complaints --- src/libicalvcard/vcardparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libicalvcard/vcardparser.c b/src/libicalvcard/vcardparser.c index a00f63773..623918ddb 100644 --- a/src/libicalvcard/vcardparser.c +++ b/src/libicalvcard/vcardparser.c @@ -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(); @@ -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) {