diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-05-09 20:14:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-05-09 20:14:06 -0700 |
commit | 1cf9f19e47f2ab757a6eedc1969c81bdb8e8a5f4 (patch) | |
tree | b4ec07686caaadde4fb98c4cb3637e79c8acd445 | |
parent | dc6f38b2a9f2bc7c1c6a0953a08be9309dfad823 (diff) | |
download | txr-1cf9f19e47f2ab757a6eedc1969c81bdb8e8a5f4.tar.gz txr-1cf9f19e47f2ab757a6eedc1969c81bdb8e8a5f4.tar.bz2 txr-1cf9f19e47f2ab757a6eedc1969c81bdb8e8a5f4.zip |
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.
-rw-r--r-- | stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |