Fix undefined behavior in notify_fatal_error
This commit is contained in:
parent
fd00776012
commit
c78cd84ea4
|
@ -34,6 +34,8 @@ bool notify_fatal_error(StringView msg)
|
||||||
auto cmd = format("xmessage -buttons 'quit:0,ignore:1' '{}'", msg);
|
auto cmd = format("xmessage -buttons 'quit:0,ignore:1' '{}'", msg);
|
||||||
int status = system(cmd.c_str());
|
int status = system(cmd.c_str());
|
||||||
return (WIFEXITED(status)) ? (WEXITSTATUS(status)) == 1 : false;
|
return (WIFEXITED(status)) ? (WEXITSTATUS(status)) == 1 : false;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user