chiark / gitweb /
test-copy: remove unnecessary initialization
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 14 May 2018 07:20:17 +0000 (09:20 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit0f556fa1afdb37b0f453c598ac1167d74cba8b2b
tree4206b02e8b8bb61377891fe75f8dfbdac14def73
parentec8402b80170cdfdaab0698a9eff00a6a9c357ed
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