summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-01-16 20:41:22 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2012-01-16 20:41:22 +0100
commite4b9ab19fe28aa0a9195e96cf770dc3ef5519c1b (patch)
tree21d82d47cfb4fc671728fcfc63b26109a3d49aad
parent2b8154b0b2df76ff3d325c3636fc5c0f01edc818 (diff)
Minor code cleanup in file_test_availability()
-rw-r--r--src/hdaccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hdaccess.c b/src/hdaccess.c
index d3fd9ba..6cdd995 100644
--- a/src/hdaccess.c
+++ b/src/hdaccess.c
@@ -1452,7 +1452,7 @@ disk_t *file_test_availability(const char *device, const int verbose, const arch
return fewf_init(device, arch, testdisk_mode);
#endif
}
- return disk_car;
+ return NULL;
}
disk_car=(disk_t *)MALLOC(sizeof(*disk_car));
disk_car->arch=arch;