From c7abbc5f24104799f23d38aed859bb9b1ae53222 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 13 Jan 2023 21:21:47 +0000 Subject: fix uninitialized .dump_csv for Mwrap.dump .dump_csv was added to dump_args for the destructor, but not initialized properly for the Mwrap.dump API call. --- ext/mwrap/mwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-24-ge0c7