From 1f7ff8ca0bc67df530e3aa28e3149ef29efa8f24 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 9 May 2016 20:14:06 -0700 Subject: Wrong argument defaulting in record-adapter. * stream.c (record_adapter): Use default_bool_arg rather than tnil. Since rb->include_match ends up passed directly to read_until_match, which deals with argument defaulting, we could just store the argument value into the structure. --- stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream.c b/stream.c index 86a6cb60..912ec0bb 100644 --- a/stream.c +++ b/stream.c @@ -2373,7 +2373,7 @@ val record_adapter(val regex, val stream, val include_match) rec_adapter->co.handle); rb->regex = regex; - rb->include_match = tnil(include_match); + rb->include_match = default_bool_arg(include_match); return rec_adapter; } -- cgit v1.2.3