From 03da9f47f9e0980a10246060636f744a3f83763c Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 20 Jun 2020 07:17:06 +0200 Subject: [PATCH] spv.c: Avoid warnings about uninitialised variables --- src/output/spv/spv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output/spv/spv.c b/src/output/spv/spv.c index b82b7693ed..83fba9631c 100644 --- a/src/output/spv/spv.c +++ b/src/output/spv/spv.c @@ -605,7 +605,7 @@ spv_item_get_light_table (const struct spv_item *item, struct spvbin_input input; spvbin_input_init (&input, data, size); - struct spvlb_table *table; + struct spvlb_table *table = NULL; error = (!size ? xasprintf ("light table member is empty") : !spvlb_parse_table (&input, &table) @@ -965,7 +965,7 @@ spv_decode_children (struct spv_reader *spv, const char *structure_member, { const struct spvxml_node *node = seq[i]; - char *error; + char *error = NULL; if (spvsx_is_container (node)) { const struct spvsx_container *container -- 2.30.2