diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2022-03-08 09:02:51 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-04-21 13:54:23 +0100 |
commit | 3e8423d2991bc6d7f5b4e54c2513a48c39cd23e8 (patch) | |
tree | 67613886b268378b7b11e996fe88b0cbb12497af /bus | |
parent | f2982fc37b9a5c2b1d31343e68b705e83beba5e3 (diff) | |
download | dbus-3e8423d2991bc6d7f5b4e54c2513a48c39cd23e8.tar.gz |
test-segfault: Fix build error caused by a null pointer dereference warning
Only do the deliberate crash via undefined behaviour (which the compiler
is quite right to warn us about!) if raise() isn't available.
The pointer needs to be volatile otherwise the compiler is free to remove
the store.
Part-of: https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/275
Reviewed-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'bus')
0 files changed, 0 insertions, 0 deletions