diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-01-02 20:02:23 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-01-02 20:02:23 +0100 |
| commit | 1a73bd946b8636dbcbb2970c8f8e919b888074ab (patch) | |
| tree | e9f448c03632d4c35486fc8fefbca527121c54da /src_c/common.c | |
| parent | 90600e3f0761dcd2858a591c68c62c2fd259a381 (diff) | |
WIP c implementation
Diffstat (limited to 'src_c/common.c')
| -rw-r--r-- | src_c/common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src_c/common.c b/src_c/common.c index 66b826d..066ff5a 100644 --- a/src_c/common.c +++ b/src_c/common.c @@ -436,7 +436,7 @@ int opcut_result_write(opcut_result_t *result, FILE *stream) { if (fputs(",\"used\":[", stream) < 0) return OPCUT_ERROR; - for (opcut_used_t *used; used; used = used->next) { + for (opcut_used_t *used = result->used; used; used = used->next) { if (write_used(used, stream)) return OPCUT_ERROR; @@ -449,7 +449,8 @@ int opcut_result_write(opcut_result_t *result, FILE *stream) { if (fputs("],\"unused\":[", stream) < 0) return OPCUT_ERROR; - for (opcut_unused_t *unused; unused; unused = unused->next) { + for (opcut_unused_t *unused = result->unused; unused; + unused = unused->next) { if (write_unused(unused, stream)) return OPCUT_ERROR; |
