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'.pull/2/head
parent
62b5c91420
commit
9dee659190
|
@ -1090,7 +1090,7 @@ static const struct BUFFER *findprevious(CONTEXT *ctx, const struct BUFFER *buf)
|
|||
|
||||
error = FALSE;
|
||||
prevblk = buf->num;
|
||||
prevbuf = (struct BUFFER*)NULL;
|
||||
savebuf = (struct BUFFER*)NULL;
|
||||
skipped = 0;
|
||||
do {
|
||||
prevmiddle = FALSE;
|
||||
|
|
Loading…
Reference in New Issue