aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-04-12 04:16:44 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:16:44 +0000
commit9cfb4c0390bde730011874cdd8cc62fb0a5da6ea (patch)
treec4c069321fb1c69edcbf3b7af8443db16cd3e0c4 /src/decode.c
parente566c4c64cbfae1141bb8619c6f4029fedc68ad6 (diff)
downloadmpd-9cfb4c0390bde730011874cdd8cc62fb0a5da6ea.tar.gz
mpd-9cfb4c0390bde730011874cdd8cc62fb0a5da6ea.tar.xz
mpd-9cfb4c0390bde730011874cdd8cc62fb0a5da6ea.zip
decode: fix some uninitialized variable warnings
They're probably not needed, but less noise => faster debugging git-svn-id: https://svn.musicpd.org/mpd/trunk@7302 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decode.c b/src/decode.c
index 0c4503872..c5ad1c817 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -408,10 +408,10 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
/** cross fading enabled for the current song? 0=must check;
1=enabled; -1=disabled */
int doCrossFade = 0;
- unsigned int crossFadeChunks;
+ unsigned int crossFadeChunks = 0;
/** the position of the next cross-faded chunk in the next
song */
- int nextChunk;
+ int nextChunk = 0;
int decodeWaitedOn = 0;
static const char silence[CHUNK_SIZE];
double sizeToTime = 0.0;