summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2024-12-11 20:20:52 -0800
committerKaz Kylheku <kaz@kylheku.com>2024-12-11 20:20:52 -0800
commitd10133ca992eeb8e26940c25959017a9250c0768 (patch)
treea72badae0b2b0d57c2eb027a519456935da56aa2
parent2f56813d42d8ef81d77be76cceb22189319826f0 (diff)
downloadtxr-d10133ca992eeb8e26940c25959017a9250c0768.tar.gz
txr-d10133ca992eeb8e26940c25959017a9250c0768.tar.bz2
txr-d10133ca992eeb8e26940c25959017a9250c0768.zip
lib: fix g++ warning in map_common.
* eval.c (map_common): use the all_zero_init macro, defined differently for C and C++ for initializing a struct to all zero.
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 422f903f..2ad4b785 100644
--- a/eval.c
+++ b/eval.c
@@ -5804,7 +5804,7 @@ static val map_common(val self, val fun, varg lists,
chk_malloc(argc * sizeof *iter_array),
alloca(argc * sizeof *iter_array)));
val buf = if2(over_limit, make_owned_buf(one, coerce(mem_t *, iter_array)));
- seq_build_t out = { 0 };
+ seq_build_t out = all_zero_init;
args_decl(args_fun, max(argc, ARGS_MIN));
if (collect_fn != 0)