mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[osdep] initialize ret
This commit is contained in:
parent
dabfe8dbbd
commit
aa7edfc16d
@ -352,7 +352,7 @@ exe(char *path)
|
|||||||
|
|
||||||
int
|
int
|
||||||
exe_no_stdin(char *path) {
|
exe_no_stdin(char *path) {
|
||||||
int ret;
|
int ret = 0;
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
|
|
||||||
#if defined(F_GETFD) && defined(FD_CLOEXEC)
|
#if defined(F_GETFD) && defined(FD_CLOEXEC)
|
||||||
@ -373,6 +373,7 @@ exe_no_stdin(char *path) {
|
|||||||
else if (pid > 0)
|
else if (pid > 0)
|
||||||
waitpid(pid, &ret, 0);
|
waitpid(pid, &ret, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user