From 4d5d9582a207eaaec4aa7fd141d5407205ed552d Mon Sep 17 00:00:00 2001 From: Myria Date: Sat, 3 Jun 2017 10:17:27 -0700 Subject: [PATCH] Warning fix. Uninitialized variable shouldn't have happened because it'd mean header was corrupt...? --- ctrtool/cwav.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ctrtool/cwav.c b/ctrtool/cwav.c index cf9f59b..c87ede4 100644 --- a/ctrtool/cwav.c +++ b/ctrtool/cwav.c @@ -814,6 +814,8 @@ int cwav_pcm_setup(cwav_pcmstate* state, cwav_context* ctx, int isloop) startoffset = getle32(ctx->infoheader.loopstart); else if (ctx->infoheader.encoding == CWAV_ENCODING_PCM16) startoffset = getle32(ctx->infoheader.loopstart) * 2; + else + startoffset = 0; } else {