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

Commit 2a6e5cf4 authored by Marco Nelissen's avatar Marco Nelissen Committed by Gerrit Code Review
Browse files

Merge "Fix uninitialized variable."

parents 166776fb 13b97d6e
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;
}