summaryrefslogtreecommitdiffstats
path: root/m4/lt~obsolete.m4
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-26 00:14:19 +0200
committerDan McGee <dan@archlinux.org>2011-08-26 00:14:19 +0200
commitc5982a3eb5287afdec6c9b859f81795c773da8fe (patch)
treea7c560c2e6552a0344998766ca966ca740298915 /m4/lt~obsolete.m4
parente1dce078b247142f7db80bf2d338e431df34691e (diff)
downloadpacman-c5982a3eb5287afdec6c9b859f81795c773da8fe.tar.gz
pacman-c5982a3eb5287afdec6c9b859f81795c773da8fe.tar.xz
strtrim: don't move empty string
There were many cases where the string coming in was a blank line, e.g. "\n\0", length 1. The trim routine starts by trimming leading spaces, thus trimming everything. We would then proceed to do a memmove of the NULL byte, which is completely worthless as we can just assign it instead. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'm4/lt~obsolete.m4')
0 files changed, 0 insertions, 0 deletions