diff options
author | Tuomas Virtanen <katajakasa@gmail.com> | 2018-09-30 12:36:45 +0300 |
---|---|---|
committer | Tuomas Virtanen <katajakasa@gmail.com> | 2018-09-30 12:36:45 +0300 |
commit | 8d70cfd066055d63db11871f4ee5055000b4d8c1 (patch) | |
tree | fac1b3193dbe7625365551d918adbf4560af65c7 | |
parent | 650c1d1cf65b3ac58ac1436d5bca5f64e06118e1 (diff) |
Fix uninitialized return bug
-rw-r--r-- | src/internal/kitdecoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/kitdecoder.c b/src/internal/kitdecoder.c index ec95621..09e46d3 100644 --- a/src/internal/kitdecoder.c +++ b/src/internal/kitdecoder.c @@ -289,7 +289,7 @@ void Kit_AdvanceDecoderOutput(Kit_Decoder *dec) { unsigned int Kit_GetDecoderOutputLength(Kit_Decoder *dec) {
assert(dec != NULL);
- unsigned int len;
+ unsigned int len = 0;
if(SDL_LockMutex(dec->output_lock) == 0) {
len = Kit_GetBufferLength(dec->buffer[KIT_DEC_BUF_OUT]);
SDL_UnlockMutex(dec->output_lock);
|