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

Commit 451dfee3 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Set output value in error case

We want to set the contents of "out_size_num_byte", and not
the pointer value, in the error case.

Bug: 266757931
Change-Id: I02edddcbcc4fc80dbb61efe8dc7c45bd3ce1c904
Test: TreeHugger
parent 7cf627ba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -195,7 +195,7 @@ AvbIOResult FsManagerAvbOps::GetSizeOfPartition(const char* partition,
    }
    int err = ioctl(fd, BLKGETSIZE64, out_size_num_byte);
    if (err) {
        out_size_num_byte = 0;
        *out_size_num_byte = 0;
        return AVB_IO_RESULT_ERROR_IO;
    }
    return AVB_IO_RESULT_OK;