[vlc-devel] [PATCH 6/7] config: use flexible array member instead of a zero length array

Felix Abecassis felix.abecassis at gmail.com
Tue May 6 19:08:30 CEST 2014


Zero length array is GNU C.
---
 src/config/keys.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config/keys.c b/src/config/keys.c
index 07c0d75..dac96e7 100644
--- a/src/config/keys.c
+++ b/src/config/keys.c
@@ -396,7 +396,7 @@ struct vlc_actions
 {
     void *map; /* Key map */
     void *global_map; /* Grabbed/global key map */
-    struct hotkey keys[0];
+    struct hotkey keys[];
 };
 
 static int vlc_key_to_action (vlc_object_t *obj, const char *varname,
-- 
1.9.1




More information about the vlc-devel mailing list