aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/httpd_output_plugin.c
diff options
context:
space:
mode:
authorThomas Jansen <mithi@mithi.net>2011-02-04 10:22:00 +0100
committerMax Kellermann <max@duempel.org>2011-02-09 22:41:36 +0100
commite776c605adeb984aae290cdff38c5f8dd0cd291e (patch)
treeb7fd60c0b77ae42f0ff2fbc389dc7a4647061b16 /src/output/httpd_output_plugin.c
parent8b2f4fc823496c9e473616487e6dc572d77df346 (diff)
downloadmpd-e776c605adeb984aae290cdff38c5f8dd0cd291e.tar.gz
mpd-e776c605adeb984aae290cdff38c5f8dd0cd291e.tar.xz
mpd-e776c605adeb984aae290cdff38c5f8dd0cd291e.zip
output/httpd: initialize unflushed_input
This fixes the following valgrind warning occuring on the first call of httpd_output_read_page: ==20124== Conditional jump or move depends on uninitialised value(s) ==20124== at 0x425E65: httpd_output_read_page (httpd_output_plugin.c:240) ==20124== by 0x426087: httpd_output_open (httpd_output_plugin.c:279) ==20124== by 0x41D862: ao_open (output_plugin.h:206) ==20124== by 0x41E133: audio_output_task (output_thread.c:590)
Diffstat (limited to '')
-rw-r--r--src/output/httpd_output_plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c
index 72994018a..27103c3f8 100644
--- a/src/output/httpd_output_plugin.c
+++ b/src/output/httpd_output_plugin.c
@@ -123,6 +123,7 @@ httpd_output_init(G_GNUC_UNUSED const struct audio_format *audio_format,
/* initialize metadata */
httpd->metadata = NULL;
+ httpd->unflushed_input = 0;
/* initialize encoder */