mirror of
https://github.com/yuzu-emu/AppImageKit-checkrt.git
synced 2024-12-23 00:05:32 +00:00
Fix displaying error message when parent enviornment can'be restored
This commit is contained in:
parent
b2ac83a76e
commit
3c85647826
4
exec.c
4
exec.c
|
@ -81,11 +81,11 @@ static int exec_common(execve_func_t function, const char *filename, char* const
|
|||
if (is_external_process(fullpath)) {
|
||||
DEBUG("External process detected. Restoring env vars from parent %d\n", get_parent_pid());
|
||||
env = read_parent_env();
|
||||
if (!env)
|
||||
if (!env) {
|
||||
env = envp;
|
||||
else
|
||||
DEBUG("Error restoring env vars from parent\n");
|
||||
}
|
||||
}
|
||||
int ret = function(filename, argv, env);
|
||||
|
||||
if (fullpath != filename)
|
||||
|
|
Loading…
Reference in a new issue