OSDN Git Service

ntfsrecover.c: Fix compiler warning about uninitialized 'savebuf' usage.
authorErik Larsson <mechie@users.sourceforge.net>
Tue, 16 Feb 2016 08:38:12 +0000 (09:38 +0100)
committerErik Larsson <mechie@users.sourceforge.net>
Tue, 16 Feb 2016 08:38:12 +0000 (09:38 +0100)
commit9dee6591905d39283046136ebe87529157757202
treef1c36b81d18aa5c4eb97f99c75fa6cd8634af026
parent62b5c91420814f4f7962441ddebb9eb2e04d6697
ntfsrecover.c: Fix compiler warning about uninitialized 'savebuf' usage.

The previous fix for the warning referred to 'prevbuf' being used
uninitialized and this is also what the compiler says. However
initializing 'prevbuf' doesn't make the warning go away and further
testing revealed that it is really 'savebuf' being possibly used prior
to initialization that is the source of the warning (the incorrect
warning message is probably an optimization-related gcc bug). So replace
previous ineffective fix with explicit initialization of 'savebuf'.
ntfsprogs/ntfsrecover.c