]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/sd-journal.c
journal: decompress_startswith can return an error
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Dec 2015 14:38:50 +0000 (09:38 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 13 Dec 2015 19:54:47 +0000 (14:54 -0500)
commit2aaec9b4f61c1c1fa3374f40f0f1e828b6c53e1e
treee5a0bdd84f86120c7ab5ef4d26aeba80bd7df37a
parente64c53fd05496fd9683db8f5130826ad1c6c515d
journal: decompress_startswith can return an error

The return value was used directly in an if, so an error was treated
as success; we need to bail out instead. An error should not happen,
unless we have a compression/decompression mismatch, so output a debug
line.
src/journal/sd-journal.c