• M
    qcow2: Don't shadow return value · 7454d600
    Max Reitz 提交于
    When trying to update the refcounts for a snapshot, the return value of
    update_refcount on a compressed cluster was pretty much ignored,
    cancelling the update on error but returning 0. This is caused by an
    inner "ret" variable shadowing the outer one (the latter is used in the
    return statement).
    Signed-off-by: NMax Reitz <mreitz@redhat.com>
    Signed-off-by: NKevin Wolf <kwolf@redhat.com>
    7454d600
qcow2-refcount.c 58.8 KB