Don't crash if kernel is not specified

This commit is contained in:
Laurent Vivier 2007-05-22 18:32:48 +00:00
parent f983467b0c
commit a8f1b3e0b3

View File

@ -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();