shm: Initialize shm_area_buf to invalid value

This commit is contained in:
Olivier Crête 2013-01-17 19:29:31 -05:00
parent 2cacfa2932
commit feb113e87a

View file

@ -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;