From: Olivier CrĂȘte Date: Thu, 28 Mar 2013 18:36:16 +0000 (-0400) Subject: shm: Make sure the zero-sized array is always last in the struct X-Git-Tag: 1.19.3~507^2~13884 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e9ff0a160b89b6b9a87d7bd5c8c7dba68b813df;p=platform%2Fupstream%2Fgstreamer.git shm: Make sure the zero-sized array is always last in the struct https://bugzilla.gnome.org/show_bug.cgi?id=696681 --- diff --git a/sys/shm/shmpipe.c b/sys/shm/shmpipe.c index 677113b..d721859 100644 --- a/sys/shm/shmpipe.c +++ b/sys/shm/shmpipe.c @@ -115,10 +115,11 @@ struct _ShmBuffer ShmBuffer *next; + void *tag; + int num_clients; + /* This must ALWAYS stay last in the struct */ int clients[0]; - - void *tag; };