summaryrefslogtreecommitdiffstats
path: root/src/dirn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirn.c')
-rw-r--r--src/dirn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dirn.c b/src/dirn.c
index 588b65e..dbf4fa3 100644
--- a/src/dirn.c
+++ b/src/dirn.c
@@ -596,7 +596,7 @@ static int dir_partition_aux(disk_t *disk, const partition_t *partition, dir_dat
inode_known[depth]=inode;
dir_data->get_dir(disk, partition, dir_data, inode, &dir_list);
dir_aff_log(dir_data, &dir_list);
- if(*current_cmd!=NULL)
+ if(current_cmd!=NULL && *current_cmd!=NULL)
{
/* TODO: handle copy_files */
dir_data->current_directory[current_directory_namelength]='\0';