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

Commit 13b97d6e authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix uninitialized variable.

Bug: 19020118
Change-Id: I0aceadfec6652d468a5a5d9eb5dcbf0845757ffa
parent 47deb15e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -48,6 +48,8 @@ MidiIoWrapper::MidiIoWrapper(int fd, off64_t offset, int64_t size) {
}

MidiIoWrapper::MidiIoWrapper(const sp<DataSource> &source) {
    ALOGV("MidiIoWrapper(DataSource)");
    mFd = -1;
    mDataSource = source;
    off64_t l;
    if (mDataSource->getSize(&l) == OK) {
@@ -76,7 +78,7 @@ int MidiIoWrapper::readAt(void *buffer, int offset, int size) {
}

int MidiIoWrapper::size() {
    ALOGV("size() = %d", mLength);
    ALOGV("size() = %d", int(mLength));
    return mLength;
}