mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
1e4dd198af
commit
3370289a4c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user