summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-07-19 21:02:37 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-07-19 21:02:37 -0700
commit9bc29f44130cdfe750da120048298435cf59d72e (patch)
tree053fbf67250b83632402e3e5154f967d82fa443a
parentcf117291f8e2956c8156b170c1ed59e9520262c3 (diff)
downloadtxr-9bc29f44130cdfe750da120048298435cf59d72e.tar.gz
txr-9bc29f44130cdfe750da120048298435cf59d72e.tar.bz2
txr-9bc29f44130cdfe750da120048298435cf59d72e.zip
Replace 0 constant with nil.
* lib.c (split_str): Fourth argument of search_regex is Lisp boolean, so nil should be used to specify false.
-rw-r--r--lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.c b/lib.c
index 9fcbe686..ed885e62 100644
--- a/lib.c
+++ b/lib.c
@@ -3748,7 +3748,7 @@ val split_str(val str, val sep)
val pos = zero;
do {
- cons_bind (new_pos, len, search_regex(str, sep, pos, 0));
+ cons_bind (new_pos, len, search_regex(str, sep, pos, nil));
if (eql(pos, new_pos) && len == zero)
new_pos = plus(new_pos, one);