# HG changeset patch # User cboesch # Date 1333797539 0 # Node ID e301516e3c83aa00490b2717ed80ec9864792adc # Parent da38eb1e206906f3adaa4fbf26ca5316a8f4a89e subassconvert: use standard struct zero init. diff -r da38eb1e2069 -r e301516e3c83 sub/subassconvert.c --- 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);