summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2013-01-17 19:29:31 -0500
committerOlivier CrĂȘte <olivier.crete@collabora.com>2013-01-17 19:33:06 -0500
commit857afc8c3a5345fa3ad18958ca7d0d076d522519 (patch)
treea04fbefec3f8794c8f157d050d01ae7e91101d4a
parent2a74e2af14098d8566c9be4a759c70e2472fae1e (diff)
shm: Initialize shm_area_buf to invalid value
-rw-r--r--sys/shm/shmpipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/shm/shmpipe.c b/sys/shm/shmpipe.c
index 4fa1f1719..eb151442a 100644
--- a/sys/shm/shmpipe.c
+++ b/sys/shm/shmpipe.c
@@ -274,6 +274,7 @@ sp_open_shm (char *path, int id, mode_t perms, size_t size)
memset (area, 0, sizeof (ShmArea));
+ area->shm_area_buf = MAP_FAILED;
area->use_count = 1;
area->shm_area_len = size;