[MPlayer-cvslog] r34846 - trunk/sub/subassconvert.c

cboesch subversion at mplayerhq.hu
Sat Apr 7 13:18:59 CEST 2012


Author: cboesch
Date: Sat Apr  7 13:18:59 2012
New Revision: 34846

Log:
subassconvert: use standard struct zero init.

Modified:
   trunk/sub/subassconvert.c

Modified: trunk/sub/subassconvert.c
==============================================================================
--- trunk/sub/subassconvert.c	Sat Apr  7 13:17:09 2012	(r34845)
+++ trunk/sub/subassconvert.c	Sat Apr  7 13:18:59 2012	(r34846)
@@ -300,7 +300,7 @@ static char *microdvd_load_tags(struct m
     while (*s == '{') {
         char *start = s;
         char tag_char = *(s + 1);
-        struct microdvd_tag tag = {};
+        struct microdvd_tag tag = {0};
 
         if (!tag_char || *(s + 2) != ':')
             break;
@@ -498,7 +498,7 @@ void subassconvert_microdvd(const char *
         .buf     = dest,
         .bufsize = dest_buffer_size,
     };
-    struct microdvd_tag tags[sizeof(MICRODVD_TAGS) - 1] = {};
+    struct microdvd_tag tags[sizeof(MICRODVD_TAGS) - 1] = {{0}};
 
     while (*line) {
         line = microdvd_load_tags(tags, line);


More information about the MPlayer-cvslog mailing list