diff options
Diffstat (limited to 'df.c')
-rw-r--r-- | df.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -60,7 +60,9 @@ static int do_df(char *device, const char *mount_point) | |||
60 | if (strcmp(device, "/dev/root") == 0) { | 60 | if (strcmp(device, "/dev/root") == 0) { |
61 | /* Adjusts device to be the real root device, | 61 | /* Adjusts device to be the real root device, |
62 | * or leaves device alone if it can't find it */ | 62 | * or leaves device alone if it can't find it */ |
63 | find_real_root_device_name( device); | 63 | device = find_real_root_device_name(device); |
64 | if(device==NULL) | ||
65 | return FALSE; | ||
64 | } | 66 | } |
65 | #ifdef BB_FEATURE_HUMAN_READABLE | 67 | #ifdef BB_FEATURE_HUMAN_READABLE |
66 | switch (df_disp_hr) { | 68 | switch (df_disp_hr) { |