mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
shm: Make sure the zero-sized array is always last in the struct
https://bugzilla.gnome.org/show_bug.cgi?id=696681
This commit is contained in:
parent
c42ac5b450
commit
6e9ff0a160
1 changed files with 4 additions and 3 deletions
|
@ -115,10 +115,11 @@ struct _ShmBuffer
|
|||
|
||||
ShmBuffer *next;
|
||||
|
||||
int num_clients;
|
||||
int clients[0];
|
||||
|
||||
void *tag;
|
||||
|
||||
int num_clients;
|
||||
/* This must ALWAYS stay last in the struct */
|
||||
int clients[0];
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue