summaryrefslogtreecommitdiffstats
path: root/ftw.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-07-05 23:37:56 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-07-05 23:37:56 -0700
commitda442bbb28b7df94d730aba0ed46064ff2ffd9cb (patch)
tree53ad220971d974e1fbe0eadcc1d179a29f1cdbd3 /ftw.h
parent1e35e1948e417f53460440d3e09e457285a90cbe (diff)
downloadtxr-da442bbb28b7df94d730aba0ed46064ff2ffd9cb.tar.gz
txr-da442bbb28b7df94d730aba0ed46064ff2ffd9cb.tar.bz2
txr-da442bbb28b7df94d730aba0ed46064ff2ffd9cb.zip
regex-compile: argument defaulting issue.
* regex.c (regex_compile): In the string case when regex_parse needs to be called, redundant argument defaulting is being performed on error_stream, defaulting it to nil. The regex_parse function doesn't like that; it no longer accepts nil as a facsimile of missing. The right thing to do here is nothing: just pass error_stream to regex_parse as-is and let it do the defaulting. And that is how the code was initially until commit a8b0e36b1760e51a8a3a25d4e22a325e407ef3d4 in March of 2014, which introduced the redundant defaulting. Reported by Paul A. Patience
Diffstat (limited to 'ftw.h')
0 files changed, 0 insertions, 0 deletions