summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorU. Artie Eoff <ullysses.a.eoff@intel.com>2014-01-10 19:26:27 (GMT)
committerKristian Høgsberg <krh@bitplanet.net>2014-01-15 18:46:08 (GMT)
commitf97df69ee2b8981533358b6f62fadb8c0e18a278 (patch)
tree4fa7eede87bafe5335ecd7963b04337aacab5743
parent8a781aef0ebf8d5be4116fa40d9155af4ba61257 (diff)
downloadwayland-f97df69ee2b8981533358b6f62fadb8c0e18a278.tar.gz
wayland-f97df69ee2b8981533358b6f62fadb8c0e18a278.tar.xz
shm: assert sigbus_data is not NULL before member access
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
-rw-r--r--src/wayland-shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland-shm.c b/src/wayland-shm.c
index 590f775..ee1c8e6 100644
--- a/src/wayland-shm.c
+++ b/src/wayland-shm.c
@@ -550,7 +550,7 @@ wl_shm_buffer_end_access(struct wl_shm_buffer *buffer)
struct wl_shm_sigbus_data *sigbus_data =
pthread_getspecific(wl_shm_sigbus_data_key);
- assert(sigbus_data->access_count >= 1);
+ assert(sigbus_data && sigbus_data->access_count >= 1);
if (--sigbus_data->access_count == 0) {
if (sigbus_data->fallback_mapping_used) {