* [PATCH] fix uninitialized .dump_csv for Mwrap.dump
@ 2023-01-13 21:21 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2023-01-13 21:21 UTC (permalink / raw)
To: mwrap-public
.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);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-13 21:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13 21:21 [PATCH] fix uninitialized .dump_csv for Mwrap.dump Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/mwrap.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).