Bugfix spawn error when no arguments are provided
This commit is contained in:
parent
08071e6858
commit
d90add66da
@ -335,6 +335,11 @@ errval_t spawn_load_argv(int argc, char *argv[], struct spawninfo *si,
|
|||||||
return SPAWN_ERR_OUT_OF_PIDS;
|
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
|
// - Initialize the spawn_info struct
|
||||||
// TODO
|
// TODO
|
||||||
// copy name to spawninfo struct
|
// copy name to spawninfo struct
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user