From c78cd84ea4fe9c46b73bfefbb66da2fa3f43623f Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Fri, 5 Oct 2018 10:10:14 +0100 Subject: [PATCH] Fix undefined behavior in notify_fatal_error --- src/assert.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/assert.cc b/src/assert.cc index 4b7c180a..91abba85 100644 --- a/src/assert.cc +++ b/src/assert.cc @@ -34,6 +34,8 @@ bool notify_fatal_error(StringView msg) auto cmd = format("xmessage -buttons 'quit:0,ignore:1' '{}'", msg); int status = system(cmd.c_str()); return (WIFEXITED(status)) ? (WEXITSTATUS(status)) == 1 : false; +#else + return false; #endif }