From: John Darrington Date: Sat, 20 Jun 2020 05:17:06 +0000 (+0200) Subject: spv.c: Avoid warnings about uninitialised variables X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03da9f47f9e0980a10246060636f744a3f83763c;p=pspp spv.c: Avoid warnings about uninitialised variables --- 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