projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vizml now accepts the whole corpus
[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 da9293ce4826055d02113801f95c710e7ff03ae8..055e7e3a87ba0710ec964a13a872de8f739a976f 100644
(file)
--- a/
src/output/spv/spv-legacy-data.c
+++ b/
src/output/spv/spv-legacy-data.c
@@
-336,6
+336,9
@@
spv_legacy_data_decode (const uint8_t *in, size_t size, struct spv_data *out)
char *error = NULL;
memset (out, 0, sizeof *out);
+ if (!size)
+ return NULL;
+
struct spvbin_input input;
spvbin_input_init (&input, in, size);