mirror of
https://github.com/vivier/EMILE.git
synced 2025-03-06 06:30:21 +00:00
Don't crash if kernel is not specified
This commit is contained in:
parent
f983467b0c
commit
a8f1b3e0b3
@ -327,6 +327,9 @@ int read_config(emile_l2_header_t* info,
|
||||
*command_line = config[0].parameters;
|
||||
*ramdisk_path = config[0].initrd;
|
||||
|
||||
if (*kernel_path == NULL)
|
||||
error("No kernel path specified !");
|
||||
|
||||
#if defined(USE_CLI) && defined(__LINUX__)
|
||||
printf("command ");
|
||||
console_cursor_save();
|
||||
|
Loading…
x
Reference in New Issue
Block a user