Fixed use of uninitialized variable in ntfsfix

edge.strict_endians
Jean-Pierre André 2011-07-05 12:17:29 +02:00
parent 2be8e64049
commit 1c1c0540e8
1 changed files with 2 additions and 2 deletions

View File

@ -767,11 +767,11 @@ static int fix_startup(struct ntfs_device *dev, unsigned long flags)
errno = 0;
res = -1;
dev_open = FALSE;
full_bs = (char*)NULL;
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;
}
@ -849,7 +849,7 @@ error_exit:
}
}
eo = errno;
free(bs);
free(full_bs);
if (vol) {
free(vol->upcase);
free(vol);