summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-04-04 21:59:06 +0000
committerMartin Storsjö <martin@martin.st>2010-04-04 21:59:06 +0000
commit3370289a4c159ae6734ca1d85d2ded7d93e0eaf4 (patch)
tree9141c6450df79e2606f5eff6cbcdb41b747be898 /libavformat/rtsp.c
parent1e4dd198aff2f1071b88aba6ae873745e9c18a81 (diff)
Zero-initialize the reply struct
The status_code field is read in the fail codepath, where it could be read uninitialized earlier. Found by clang. Originally committed as revision 22801 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 18538c78cf..643e4d5a1f 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1442,7 +1442,7 @@ int ff_rtsp_connect(AVFormatContext *s)
char *option_list, *option, *filename;
URLContext *rtsp_hd;
int port, err, tcp_fd;
- RTSPMessageHeader reply1, *reply = &reply1;
+ RTSPMessageHeader reply1 = {}, *reply = &reply1;
int lower_transport_mask = 0;
char real_challenge[64];
struct sockaddr_storage peer;