summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2014-11-18 10:16:30 +0100
committerBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>2014-11-18 10:16:30 +0100
commit266299cfb628ce2cadccb76443b0566e1a53dbcc (patch)
tree11eafca29bf00e7566e7f4af3713edb8df3ee6a6 /media
parent34c55e3ec5d4f6fdc2313ce904fb95b9ccdf9d72 (diff)
downloadframeworks_av-266299cfb628ce2cadccb76443b0566e1a53dbcc.zip
frameworks_av-266299cfb628ce2cadccb76443b0566e1a53dbcc.tar.gz
frameworks_av-266299cfb628ce2cadccb76443b0566e1a53dbcc.tar.bz2
Fix uninitialized variable
In the case of !(err == OK && !mCancelled), sdpSize is used uninitialized. Change-Id: I33c6365ca6df13b0051491771d3eee3e35346b6d Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/rtsp/SDPLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/rtsp/SDPLoader.cpp b/media/libstagefright/rtsp/SDPLoader.cpp
index 424badf..a24eb69 100644
--- a/media/libstagefright/rtsp/SDPLoader.cpp
+++ b/media/libstagefright/rtsp/SDPLoader.cpp
@@ -105,7 +105,7 @@ void SDPLoader::onLoad(const sp<AMessage> &msg) {
headers = NULL;
}
- off64_t sdpSize;
+ off64_t sdpSize = 0;
if (err == OK && !mCancelled) {
err = mHTTPDataSource->getSize(&sdpSize);