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:
Jonathan Lebon 2016-10-27 17:12:05 -04:00 committed by Atomic Bot
parent 7f2960db43
commit 0333260559

View File

@ -764,7 +764,7 @@ _ostree_delta_get_endianness (GVariant *superblock,
}
}
return G_BYTE_ORDER;
return OSTREE_DELTA_ENDIAN_INVALID;
}
}