diff options
Diffstat (limited to 'src/assert.cc')
| -rw-r--r-- | src/assert.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/assert.cc b/src/assert.cc index b36fc4e0..e93319a4 100644 --- a/src/assert.cc +++ b/src/assert.cc @@ -40,8 +40,8 @@ void on_assert_failed(const char* message) return; } #else - int res = system(("xmessage -buttons 'quit:0,ignore:1' '" + msg + "'").c_str()); - switch (res) + auto cmd = "xmessage -buttons 'quit:0,ignore:1' '" + msg + "'"; + switch (system(cmd.c_str())) { case -1: case 0: |
