From 4f6fb651c2a9a902ddc1839aaac886254c5e6fb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Mon, 15 Feb 2016 12:07:28 +0100 Subject: [PATCH] Silenced a compiler warning for possibly uninitialized pointer Some compilers issue a warning when a pointer is initialized in both alternatives of a condition. Force an extra initialization to avoid such warnings. --- ntfsprogs/ntfsrecover.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ntfsprogs/ntfsrecover.c b/ntfsprogs/ntfsrecover.c index 928f276c..c2b6c4ee 100644 --- a/ntfsprogs/ntfsrecover.c +++ b/ntfsprogs/ntfsrecover.c @@ -1090,6 +1090,7 @@ static const struct BUFFER *findprevious(CONTEXT *ctx, const struct BUFFER *buf) error = FALSE; prevblk = buf->num; + prevbuf = (struct BUFFER*)NULL; skipped = 0; do { prevmiddle = FALSE;