about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-01-13 21:21:47 +0000
committerEric Wong <mwrap-public@80x24.org>2023-01-13 21:22:13 +0000
commitc7abbc5f24104799f23d38aed859bb9b1ae53222 (patch)
treef1d06c9bc2e1814e7220ab00611b45ae7029e11f
parentdf5335f9b3f324758e21871f8ac9086b2c33ab4a (diff)
downloadmwrap-c7abbc5f24104799f23d38aed859bb9b1ae53222.tar.gz
.dump_csv was added to dump_args for the destructor, but not
initialized properly for the Mwrap.dump API call.
-rw-r--r--ext/mwrap/mwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mwrap/mwrap.c b/ext/mwrap/mwrap.c
index a45bb38..826ca92 100644
--- a/ext/mwrap/mwrap.c
+++ b/ext/mwrap/mwrap.c
@@ -27,7 +27,7 @@ extern VALUE __attribute__((weak)) rb_yield(VALUE);
 static VALUE mwrap_dump(int argc, VALUE *argv, VALUE mod)
 {
         VALUE io, min;
-        struct dump_arg a;
+        struct dump_arg a = { .dump_csv = false };
         rb_io_t *fptr;
 
         rb_scan_args(argc, argv, "02", &io, &min);