Bugfix spawn error when no arguments are provided

This commit is contained in:
Sparchatus 2022-04-27 14:18:23 +00:00
parent 08071e6858
commit d90add66da

View File

@ -335,6 +335,11 @@ errval_t spawn_load_argv(int argc, char *argv[], struct spawninfo *si,
return SPAWN_ERR_OUT_OF_PIDS;
}
if(argc == 0) {
debug_printf("[spawn_load_argv] argc == 0 (no arguments)\n");
return SPAWN_ERR_FIND_MODULE;
}
// - Initialize the spawn_info struct
// TODO
// copy name to spawninfo struct