Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 266299cf authored by Bernhard Rosenkränzer's avatar Bernhard Rosenkränzer
Browse files

Fix uninitialized variable



In the case of !(err == OK && !mCancelled), sdpSize is used
uninitialized.

Change-Id: I33c6365ca6df13b0051491771d3eee3e35346b6d
Signed-off-by: default avatarBernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
parent 34c55e3e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);