From 354b757300186ed7a7e36682e8faf5cdc4ad63c1 Mon Sep 17 00:00:00 2001 From: Axel Holzinger Date: Wed, 21 Jul 2010 17:27:28 +0000 Subject: [PATCH] Zero-initialize structs/arrays with {0} instead of {}, which isn't proper C99 Patch by Axel Holzinger, aholzinger at gmx dot de Originally committed as revision 24391 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mxfdec.c | 2 +- libavformat/rtsp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 7bca6874da..ac5ea4bb36 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -531,7 +531,7 @@ static int mxf_read_index_table_segment(void *arg, ByteIOContext *pb, int tag, i 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); diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 9316f3cea9..7dede4c875 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1362,7 +1362,7 @@ int ff_rtsp_connect(AVFormatContext *s) 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;