Commit b47fd064 authored by mstorsjo's avatar mstorsjo

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22801 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b9cdefe2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment