projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spv-writer: Consistently use label from output_item.
[pspp]
/
src
/
output
/
spv
/
spv-legacy-data.c
diff --git
a/src/output/spv/spv-legacy-data.c
b/src/output/spv/spv-legacy-data.c
index 8985f35979a1e177abdb507256e42a8c18fa81c6..4e3d72c4a4c1832af4a66d6de64497407d6db1d2 100644
(file)
--- a/
src/output/spv/spv-legacy-data.c
+++ b/
src/output/spv/spv-legacy-data.c
@@
-347,7
+347,7
@@
spv_legacy_data_decode (const uint8_t *in, size_t size, struct spv_data *out)
goto error;
}
goto error;
}
- out->sources =
xcalloc (lb->n_sources, sizeof *out->sources
);
+ out->sources =
XCALLOC (lb->n_sources, struct spv_data_source
);
out->n_sources = lb->n_sources;
for (size_t i = 0; i < lb->n_sources; i++)
out->n_sources = lb->n_sources;
for (size_t i = 0; i < lb->n_sources; i++)
@@
-360,7
+360,7
@@
spv_legacy_data_decode (const uint8_t *in, size_t size, struct spv_data *out)
source->n_values = md->n_values;
source->vars = xcalloc (md->n_variables, sizeof *source->vars);
source->n_values = md->n_values;
source->vars = xcalloc (md->n_variables, sizeof *source->vars);
- size_t end;
+ size_t end
= -1
;
error = decode_data (in, size, md->data_offset, source, &end);
if (error)
goto error;
error = decode_data (in, size, md->data_offset, source, &end);
if (error)
goto error;