summaryrefslogtreecommitdiffstats
path: root/mpi/mplogic.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-16 20:14:29 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-16 20:14:29 -0700
commitf326cd09b24c2cd30794330ee374eef0c83b3cb5 (patch)
treeb93343892e949822d54f609ce7b9f6ff35c23d30 /mpi/mplogic.c
parent6d800734b64c92b5bb9979c06c84ed4d29098933 (diff)
downloadtxr-f326cd09b24c2cd30794330ee374eef0c83b3cb5.tar.gz
txr-f326cd09b24c2cd30794330ee374eef0c83b3cb5.tar.bz2
txr-f326cd09b24c2cd30794330ee374eef0c83b3cb5.zip
Bugfix in split-str: empty-match regexes.
* lib.c (split_str_keep): In the regex case, changing to an infinite loop. The do/while is no longer needed because the if statement includes a test of the position having reached the end of the string. This is done before it is incremented by len, so we avoid wrongly keeping a separator. * txr.1: Clarified that an empty regex match behaves like an sep which is an empty string,
Diffstat (limited to 'mpi/mplogic.c')
0 files changed, 0 insertions, 0 deletions