mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 00:38:14 +01:00
Call initialize instead of check_wuffs_version
This commit is contained in:
1 parent
b41f121d20
commit
53760ce0fd
7 files changed
+34
-18
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user