Fixed warning for possible use of uninitialized variable in ntfsfix

edge.strict_endians
Jean-Pierre André 2011-07-05 12:17:28 +02:00
parent 262ed5f7df
commit 44116675ca
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}