[vlc-commits] core: remove empty curly braces initialization

Steve Lhomme git at videolan.org
Mon Apr 23 13:41:04 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Apr 23 13:40:07 2018 +0200| [ccbef67f775078293d5e27125e2eac2269138fa8] | committer: Steve Lhomme

core: remove empty curly braces initialization

They are not allowed per ยง6.7.9 of the 2011 ISO C Standard:

initializer:
         assignment-expression
         { initializer-list }
         { initializer-list , }
initializer-list:
         designation(opt) initializer
         initializer-list , designation(opt) initializer

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ccbef67f775078293d5e27125e2eac2269138fa8
---

 src/input/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/input.c b/src/input/input.c
index 36a8b6e0fa..98c679f0af 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1720,7 +1720,7 @@ static void ControlNav( input_thread_t *p_input, int i_type )
         return; /* The demux handled the navigation control */
 
     /* Handle Up/Down/Left/Right if the demux can't navigate */
-    vlc_viewpoint_t vp = {};
+    vlc_viewpoint_t vp = {0};
     int vol_direction = 0;
     int seek_direction = 0;
     switch( i_type )



More information about the vlc-commits mailing list