]> git.ipfire.org Git - thirdparty/systemd.git/commit
util-lib: handle empty string in last_path_component 7237/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 Nov 2017 19:54:31 +0000 (20:54 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 Nov 2017 19:54:31 +0000 (20:54 +0100)
commit69f9ccf140009197cd673538707b940cdf70bd29
tree51c5d957937b533f223dd0255e10d75dbcf25d60
parent58e0ac334920adf2d3934913987e3f77df4d0710
util-lib: handle empty string in last_path_component

Now the function returns an empty string when given an empty string.
Not sure if this is the best option (maybe this should be an error?),
but at least the behaviour is well defined.
src/basic/path-util.c
src/test/test-path-util.c