Call initialize instead of check_wuffs_version

This commit is contained in:
Nigel Tao committed 2019-02-16 14:18:25 +11:00
1 parent b41f121d20
commit 53760ce0fd
7 files changed
+34 -18

No files matched your search

+3 -2
View File
@@ -86,8 +86,9 @@ static const char* decode() {
if (!dec) {
return "out of memory";
}
const char* status = wuffs_deflate__decoder__check_wuffs_version(
dec, sizeof__wuffs_deflate__decoder(), WUFFS_VERSION);
const char* status = wuffs_deflate__decoder__initialize(
dec, sizeof__wuffs_deflate__decoder(), WUFFS_VERSION,
WUFFS_INITIALIZE__ALREADY_ZEROED);
if (status) {
free(dec);
return status;