]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-copy.c
test-copy: remove unnecessary initialization
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 14 May 2018 07:20:17 +0000 (09:20 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 14 May 2018 15:22:22 +0000 (17:22 +0200)
commit9421cab6db41498f476c5fa2f1c745b6cf15ec97
tree7b481e0d6ef825f932f5b9554c735bd41d314d00
parentdcd6361ea1dfaa6810b480e0bc53674e5b2c822d
test-copy: remove unnecessary initialization

Initializing just some of the values doesn't make sense. We should handle them
all in the same way. In those tests there are no jumps, all steps are covered
with assert_se(), so we know everything will be set if we get to the end of the
function. And _not_ initializing those variables has the advantage that it
allows valgrind to catch potential initalization errors in the function being
tested.
src/test/test-copy.c