]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/load-fragment: avoid allocating 0 bytes when given an invalid command
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 11 Jan 2015 21:57:02 +0000 (16:57 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 12 Jan 2015 04:41:42 +0000 (23:41 -0500)
commite01ff428993f0c126f010b5625002e6a0a8aff4a
tree3d26a90ff3c157668dda700094829a1623ba8f5d
parent4d8629de8bd0f837f99981267d10e71d1f72e47d
core/load-fragment: avoid allocating 0 bytes when given an invalid command

With a command line like "@/something" we would allocate an array with
0 elements. Avoid that, and add a test too.
src/core/load-fragment.c
src/test/test-unit-file.c