From feb113e87abe143a93bc9346d54f80ba79a5c406 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 17 Jan 2013 19:29:31 -0500 Subject: [PATCH] shm: Initialize shm_area_buf to invalid value --- sys/shm/shmpipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/shm/shmpipe.c b/sys/shm/shmpipe.c index e1863ed..348dc40 100644 --- a/sys/shm/shmpipe.c +++ b/sys/shm/shmpipe.c @@ -280,6 +280,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; -- 2.7.4