]> git.ipfire.org Git - thirdparty/systemd.git/commit
extract-word: Skip coalesced separators in place 1793/head
authorFilipe Brandenburger <filbranden@google.com>
Fri, 6 Nov 2015 05:57:26 +0000 (21:57 -0800)
committerFilipe Brandenburger <filbranden@google.com>
Fri, 6 Nov 2015 05:57:26 +0000 (21:57 -0800)
commit0247447e96f1385cf0c48e3e6b696214fbe36802
tree5847461a86e67da35f285f103d7d19ee419d4fb0
parent27fc921b658adc5baa988c4c213888b016a60b18
extract-word: Skip coalesced separators in place

Just skip them in place, instead of setting separator=true. We only do
that in a single place (while finding a separator outside of quote or
backslash states) so we don't really need a separate state for it.

Tested that no regressions were introduced in test-extract-word. Ran a
full `make check` and also installed the binaries on a test system and
did not see any issues related to parsing unit files or starting units
after a reboot.
src/basic/extract-word.c