mount: if FILE* is NULL, it's not wise to use it.
This commit is contained in:
@ -267,8 +267,10 @@ mtab:
|
|||||||
FILE *mountTable = setmntent(bb_path_mtab_file, "a+");
|
FILE *mountTable = setmntent(bb_path_mtab_file, "a+");
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!mountTable)
|
if (!mountTable) {
|
||||||
bb_error_msg("no %s",bb_path_mtab_file);
|
bb_error_msg("no %s",bb_path_mtab_file);
|
||||||
|
goto ret;
|
||||||
|
}
|
||||||
|
|
||||||
// Add vfs string flags
|
// Add vfs string flags
|
||||||
|
|
||||||
@ -300,7 +302,7 @@ mtab:
|
|||||||
free(fsname);
|
free(fsname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ret:
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user