changeset 34758:e301516e3c83

subassconvert: use standard struct zero init.
author cboesch
date Sat, 07 Apr 2012 11:18:59 +0000
parents da38eb1e2069
children 430e164238d1
files sub/subassconvert.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/sub/subassconvert.c	Sat Apr 07 11:17:09 2012 +0000
+++ b/sub/subassconvert.c	Sat Apr 07 11:18:59 2012 +0000
@@ -300,7 +300,7 @@
     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 @@
         .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);