commit 3fef8e5dde12e7742b2135277f034d43ce79d539
parent ad3313f130e3d7cdd972a0f62fbd2b77f3f35a7a
Author: William Casarin <jb55@jb55.com>
Date: Mon, 30 Nov 2020 09:59:40 -0800
remove redundant check
Diffstat:
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git a/src/wasm.c b/src/wasm.c
@@ -650,11 +650,6 @@ static int parse_export_section(struct wasm_parser *p,
return 0;
}
- if (!exports) {
- fprintf(stderr, "could not allocate memory for exports section\n");
- return 0;
- }
-
for (i = 0; i < elems; i++) {
if (!parse_export(p, &exports[i])) {
note_error(p, "export #%d", i);