summaryrefslogtreecommitdiffstats
path: root/src/fat1x.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fat1x.c')
-rw-r--r--src/fat1x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fat1x.c b/src/fat1x.c
index ce7d553..4af020a 100644
--- a/src/fat1x.c
+++ b/src/fat1x.c
@@ -66,7 +66,7 @@ static void dump_fat1x(disk_t *disk_car, partition_t *partition, const unsigned
{
log_info("Boot sector\n");
dump_log(buffer_bs, FAT1x_BOOT_SECTOR_SIZE);
- if(*current_cmd==NULL)
+ if(current_cmd==NULL || *current_cmd==NULL)
{
#ifdef HAVE_NCURSES
dump_fat1x_ncurses(disk_car, partition, buffer_bs);