mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Avoid "goto exit" bypassing variable init'n
This commit is contained in:
1 parent
f82c33db2f
commit
98ccfedc96
2 files changed
+12
-8
No files matched your search
+3
-3
@@ -869,11 +869,11 @@ wuffs_gif__status wuffs_gif__decoder__decode_config(
|
||||
if (self->private_impl.status < 0) {
|
||||
return self->private_impl.status;
|
||||
}
|
||||
wuffs_gif__status status = WUFFS_GIF__STATUS_OK;
|
||||
if (!a_dst) {
|
||||
status = WUFFS_GIF__ERROR_BAD_ARGUMENT;
|
||||
goto exit;
|
||||
self->private_impl.status = WUFFS_GIF__ERROR_BAD_ARGUMENT;
|
||||
return WUFFS_GIF__ERROR_BAD_ARGUMENT;
|
||||
}
|
||||
wuffs_gif__status status = WUFFS_GIF__STATUS_OK;
|
||||
|
||||
uint8_t* b_rptr_src = NULL;
|
||||
uint8_t* b_rstart_src = NULL;
|
||||
|
||||
Reference in new issue
Block a user