Mercurial > libavformat.hg
changeset 5933:2dbc910a7002 libavformat
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.
author | mstorsjo |
---|---|
date | Sun, 04 Apr 2010 21:59:06 +0000 |
parents | 310b3b1b2921 |
children | d9f196991fe4 |
files | rtsp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rtsp.c Sun Apr 04 14:21:29 2010 +0000 +++ b/rtsp.c Sun Apr 04 21:59:06 2010 +0000 @@ -1442,7 +1442,7 @@ 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;