summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2018-09-30 12:36:45 +0300
committerTuomas Virtanen <katajakasa@gmail.com>2018-09-30 12:36:45 +0300
commit8d70cfd066055d63db11871f4ee5055000b4d8c1 (patch)
treefac1b3193dbe7625365551d918adbf4560af65c7 /src/internal
parent650c1d1cf65b3ac58ac1436d5bca5f64e06118e1 (diff)
Fix uninitialized return bug
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/kitdecoder.c2
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);