changeset 6298:eb7e896070d9 libavformat

Zero-initialize structs/arrays with {0} instead of {}, which isn't proper C99 Patch by Axel Holzinger, aholzinger at gmx dot de
author mstorsjo
date Wed, 21 Jul 2010 17:27:28 +0000
parents 241c4063d058
children 660647077ab9
files mxfdec.c rtsp.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mxfdec.c	Wed Jul 21 17:25:09 2010 +0000
+++ b/mxfdec.c	Wed Jul 21 17:27:28 2010 +0000
@@ -531,7 +531,7 @@
 static void mxf_read_pixel_layout(ByteIOContext *pb, MXFDescriptor *descriptor)
 {
     int code, value, ofs = 0;
-    char layout[16] = {};
+    char layout[16] = {0};
 
     do {
         code = get_byte(pb);
--- a/rtsp.c	Wed Jul 21 17:25:09 2010 +0000
+++ b/rtsp.c	Wed Jul 21 17:27:28 2010 +0000
@@ -1362,7 +1362,7 @@
     char host[1024], path[1024], tcpname[1024], cmd[2048], auth[128];
     char *option_list, *option, *filename;
     int port, err, tcp_fd;
-    RTSPMessageHeader reply1 = {}, *reply = &reply1;
+    RTSPMessageHeader reply1 = {0}, *reply = &reply1;
     int lower_transport_mask = 0;
     char real_challenge[64];
     struct sockaddr_storage peer;