[libav-commits] rtsp: Fix compiler warning for uninitialized variable

Jean First git at libav.org
Wed Jan 4 21:16:58 CET 2012


Module: libav
Branch: master
Commit: 4be386b318e2c707f3f65df49244768afc47c3d9

Author:    Jean First <jeanfirst at gmail.com>
Committer: Martin Storsjö <martin at martin.st>
Date:      Tue Jan  3 23:01:28 2012 +0100

rtsp: Fix compiler warning for uninitialized variable

This one won't ever be used uninitialized in practice, but
the compiler doesn't realize it.

Signed-off-by: Martin Storsjö <martin at martin.st>

---

 libavformat/rtsp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index fcf168d..2858a9a 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1103,7 +1103,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
                               int lower_transport, const char *real_challenge)
 {
     RTSPState *rt = s->priv_data;
-    int rtx, j, i, err, interleave = 0;
+    int rtx = 0, j, i, err, interleave = 0;
     RTSPStream *rtsp_st;
     RTSPMessageHeader reply1, *reply = &reply1;
     char cmd[2048];



More information about the libav-commits mailing list