mirror of
https://github.com/vivier/EMILE.git
synced 2025-08-15 07:27:41 +00:00
don't crash when configuration file is not found
This commit is contained in:
@@ -67,7 +67,8 @@ static int8_t *open_config(emile_l2_header_t *info)
|
||||
{
|
||||
printf("ERROR: cannot open configuration file %s\n",
|
||||
property);
|
||||
return NULL;
|
||||
configuration[0] = 0;
|
||||
return configuration;
|
||||
}
|
||||
|
||||
stream_fstat(stream, &stat);
|
||||
@@ -198,6 +199,8 @@ int read_config(emile_l2_header_t* info, emile_config_t *econfig)
|
||||
|
||||
if (config_get_property(configuration, "vga", property) != -1)
|
||||
vga_init(property);
|
||||
else
|
||||
vga_init("default");
|
||||
|
||||
if (config_get_property(configuration, "modem", property) != -1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user