1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Restore needed null check in OS_Unix::execute()

This commit is contained in:
Pedro J. Estébanez
2021-02-19 11:37:45 +01:00
parent 55b5f98402
commit 76d5ab8b9a

View File

@@ -298,9 +298,13 @@ Error OS_Unix::execute(const String &p_path, const List<String> &p_arguments, bo
while (fgets(buf, 65535, f)) {
p_pipe_mutex->lock();
if (p_pipe_mutex) {
p_pipe_mutex->lock();
}
(*r_pipe) += String::utf8(buf);
p_pipe_mutex->unlock();
if (p_pipe_mutex) {
p_pipe_mutex->unlock();
}
}
int rv = pclose(f);
if (r_exitcode)