From e776c605adeb984aae290cdff38c5f8dd0cd291e Mon Sep 17 00:00:00 2001 From: Thomas Jansen Date: Fri, 4 Feb 2011 10:22:00 +0100 Subject: 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) --- src/output/httpd_output_plugin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/output/httpd_output_plugin.c') 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 */ -- cgit v1.2.3 From e2aea6bce581e09e20f7570fd67cb92896f60656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulrich=20Sp=C3=B6rlein?= Date: Tue, 8 Feb 2011 05:44:00 +0100 Subject: output/httpd: include sys/socket.h for AF_UNIX --- src/output/httpd_output_plugin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/output/httpd_output_plugin.c') diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c index 27103c3f8..fe9a44256 100644 --- a/src/output/httpd_output_plugin.c +++ b/src/output/httpd_output_plugin.c @@ -34,6 +34,7 @@ #include #include #include +#include /* needed for AF_UNIX */ #ifdef HAVE_LIBWRAP #include -- cgit v1.2.3 From 8d83914f05cfa6d35c183ff40d5f2936a76667d4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 18 Mar 2011 19:44:12 +0100 Subject: output/httpd: include sys/socket.h only when building with libwrap Fixes build failure on WIN32. --- src/output/httpd_output_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/output/httpd_output_plugin.c') diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c index fe9a44256..6650d89e3 100644 --- a/src/output/httpd_output_plugin.c +++ b/src/output/httpd_output_plugin.c @@ -34,9 +34,9 @@ #include #include #include -#include /* needed for AF_UNIX */ #ifdef HAVE_LIBWRAP +#include /* needed for AF_UNIX */ #include #endif -- cgit v1.2.3