mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
shm: Initialize shm_area_buf to invalid value
This commit is contained in:
parent
2cacfa2932
commit
feb113e87a
1 changed files with 1 additions and 0 deletions
|
@ -280,6 +280,7 @@ sp_open_shm (char *path, int id, mode_t perms, size_t size)
|
||||||
|
|
||||||
memset (area, 0, sizeof (ShmArea));
|
memset (area, 0, sizeof (ShmArea));
|
||||||
|
|
||||||
|
area->shm_area_buf = MAP_FAILED;
|
||||||
area->use_count = 1;
|
area->use_count = 1;
|
||||||
|
|
||||||
area->shm_area_len = size;
|
area->shm_area_len = size;
|
||||||
|
|
Loading…
Reference in a new issue