mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +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
+2
-2
@@ -79,9 +79,9 @@ uint8_t work_buffer[WORK_BUFFER_SIZE];
|
||||
static void ignore_return_value(int ignored) {}
|
||||
|
||||
static const char* decode() {
|
||||
wuffs_gzip__decoder dec = ((wuffs_gzip__decoder){});
|
||||
wuffs_gzip__decoder dec;
|
||||
const char* status =
|
||||
wuffs_gzip__decoder__check_wuffs_version(&dec, sizeof dec, WUFFS_VERSION);
|
||||
wuffs_gzip__decoder__initialize(&dec, sizeof dec, WUFFS_VERSION, 0);
|
||||
if (status) {
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user