delta: return valid enum member
If we can't figure out what endianness a delta is, we should just throw ENDIAN_INVALID. Resolves: #550 Closes: #553 Approved by: cgwalters
This commit is contained in:
parent
7f2960db43
commit
0333260559
|
|
@ -764,7 +764,7 @@ _ostree_delta_get_endianness (GVariant *superblock,
|
|||
}
|
||||
}
|
||||
|
||||
return G_BYTE_ORDER;
|
||||
return OSTREE_DELTA_ENDIAN_INVALID;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue