]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/json: use different return code for empty input
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 19 Oct 2022 06:41:13 +0000 (08:41 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 19 Oct 2022 07:46:55 +0000 (09:46 +0200)
commit87a16eb8b54002a49f12944fc09ce45d0cbadf45
tree740c266989f18ef83f760e0a385b7e16001254f6
parent7922ead507e0d83e4ec72a8cbd2b67194766e58c
shared/json: use different return code for empty input

It is useful to distinguish if json_parse_file() got no input or invalid input.
Use different return codes for the two cases.
src/shared/elf-util.c
src/shared/json.c
src/test/test-json.c