]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/strutils: make left and right trims more robust
authorSami Kerola <kerolasa@iki.fi>
Sun, 4 Sep 2016 10:15:34 +0000 (11:15 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Sep 2016 09:49:08 +0000 (11:49 +0200)
commit0b404f0845fe97f84e45f9b7b23e9e1814d3ef4e
tree7ccc0020ba42be41aab6663aa1487f5af972772f
parent68a7f92b94431b28aa345ab30214c3490dcc10bd
lib/strutils: make left and right trims more robust

Do not follow null pointer, and stop going any further when
ltrim_whitespace() is at the end of a string.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
include/strutils.h