aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-24 19:06:34 +0100
committerMax Kellermann <max@duempel.org>2009-02-24 19:06:34 +0100
commite065c4db3378e9558b13f1a06dbf48d1f537dda7 (patch)
treeb380d007a4ecba12738312b69099a7d4f3d5dac6 /src
parent1630fe00a254c1cdf0707aadcc02f31b4287a629 (diff)
downloadmpd-e065c4db3378e9558b13f1a06dbf48d1f537dda7.tar.gz
mpd-e065c4db3378e9558b13f1a06dbf48d1f537dda7.tar.xz
mpd-e065c4db3378e9558b13f1a06dbf48d1f537dda7.zip
jack: initialize local variable "space"
Fix a gcc warning, initialize the "space" variable at the beginning of mpd_jack_play().
Diffstat (limited to '')
-rw-r--r--src/output/jack_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/jack_plugin.c b/src/output/jack_plugin.c
index 883695f5f..fa5354feb 100644
--- a/src/output/jack_plugin.c
+++ b/src/output/jack_plugin.c
@@ -392,7 +392,7 @@ mpd_jack_play(void *data, const void *chunk, size_t size)
{
struct jack_data *jd = data;
const size_t frame_size = audio_format_frame_size(&jd->audio_format);
- size_t space, space1;
+ size_t space = 0, space1;
if (jd->shutdown) {
g_warning("Refusing to play, because there is no client thread.");