From 44116675cad2055b326a9ac797c5105d78896475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Tue, 5 Jul 2011 12:17:28 +0200 Subject: [PATCH] Fixed warning for possible use of uninitialized variable in ntfsfix --- ntfsprogs/ntfsfix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ntfsprogs/ntfsfix.c b/ntfsprogs/ntfsfix.c index 0d802e4d..97a14a59 100644 --- a/ntfsprogs/ntfsfix.c +++ b/ntfsprogs/ntfsfix.c @@ -770,6 +770,8 @@ static int fix_startup(struct ntfs_device *dev, unsigned long flags) if (!dev || !dev->d_ops || !dev->d_name) { errno = EINVAL; ntfs_log_perror("%s: dev = %p", __FUNCTION__, dev); + vol = (ntfs_volume*)NULL; + bs = (NTFS_BOOT_SECTOR*)NULL; goto error_exit; }