mirror of
https://github.com/yuzu-emu/AppImageKit-checkrt.git
synced 2024-12-23 09:15:28 +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,10 +81,10 @@ static int exec_common(execve_func_t function, const char *filename, char* const
|
||||||
if (is_external_process(fullpath)) {
|
if (is_external_process(fullpath)) {
|
||||||
DEBUG("External process detected. Restoring env vars from parent %d\n", get_parent_pid());
|
DEBUG("External process detected. Restoring env vars from parent %d\n", get_parent_pid());
|
||||||
env = read_parent_env();
|
env = read_parent_env();
|
||||||
if (!env)
|
if (!env) {
|
||||||
env = envp;
|
env = envp;
|
||||||
else
|
|
||||||
DEBUG("Error restoring env vars from parent\n");
|
DEBUG("Error restoring env vars from parent\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
int ret = function(filename, argv, env);
|
int ret = function(filename, argv, env);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue