summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-11-14 15:02:30 +0800
committerchenzizhan <[email protected]>2023-11-14 15:02:30 +0800
commitc36286e590e3a169c011a2a15c2eb4e46785865d (patch)
treee0a746ba85ef9f0a3b00bb400a63e46b799d8970
parent706e5dc7a2615cec0dc2a1bf9eddcff9a391855c (diff)
fix civ4.4.1c
-rw-r--r--src/exporter/cjson_exporter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exporter/cjson_exporter.c b/src/exporter/cjson_exporter.c
index c519ca7..608b393 100644
--- a/src/exporter/cjson_exporter.c
+++ b/src/exporter/cjson_exporter.c
@@ -862,7 +862,7 @@ void fieldstat_json_exporter_export_array(const struct fieldstat_json_exporter *
}
struct json_writer *field_json_delta = NULL;
if (exporter->history != NULL) { // not null when fieldstat_json_exporter_enable_delta is called
- struct json_writer *field_json_delta = json_writer_init();
+ field_json_delta = json_writer_init();
write_delta_to_json((struct fieldstat_json_exporter *)exporter, &tag_field_pair[i], field_json_delta);
}