summaryrefslogtreecommitdiffstats
path: root/filter.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-11-02 06:14:03 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-11-02 06:14:03 -0700
commit1cf6c607eb35525d2329651e1d75f21b3a8e82b2 (patch)
tree149bdc84a3b367287e1a25781c990c97401f955a /filter.h
parent62fc840c57cbaab249929126eb592d30d9554f9d (diff)
downloadtxr-1cf6c607eb35525d2329651e1d75f21b3a8e82b2.tar.gz
txr-1cf6c607eb35525d2329651e1d75f21b3a8e82b2.tar.bz2
txr-1cf6c607eb35525d2329651e1d75f21b3a8e82b2.zip
listener: avoid unnecessary string duplication.
* parser.c (repl): There is no need to use chk_strdup on the string inside histfile. We can just use the original string, since it won't be garbage collected. The existing gc_hint(histfile) at the end of the function ensures this. The reason the chk_strdup was done is that originally this was a utf8_dup_to that I just blindly replaced when the listener Unicode conversion took place.
Diffstat (limited to 'filter.h')
0 files changed, 0 insertions, 0 deletions