You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Restore needed null check in OS_Unix::execute()
This commit is contained in:
@@ -298,10 +298,14 @@ Error OS_Unix::execute(const String &p_path, const List<String> &p_arguments, bo
|
|||||||
|
|
||||||
while (fgets(buf, 65535, f)) {
|
while (fgets(buf, 65535, f)) {
|
||||||
|
|
||||||
|
if (p_pipe_mutex) {
|
||||||
p_pipe_mutex->lock();
|
p_pipe_mutex->lock();
|
||||||
|
}
|
||||||
(*r_pipe) += String::utf8(buf);
|
(*r_pipe) += String::utf8(buf);
|
||||||
|
if (p_pipe_mutex) {
|
||||||
p_pipe_mutex->unlock();
|
p_pipe_mutex->unlock();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
int rv = pclose(f);
|
int rv = pclose(f);
|
||||||
if (r_exitcode)
|
if (r_exitcode)
|
||||||
*r_exitcode = WEXITSTATUS(rv);
|
*r_exitcode = WEXITSTATUS(rv);
|
||||||
|
|||||||
Reference in New Issue
Block a user