aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-01 22:45:21 +0200
committerMax Kellermann <max@duempel.org>2009-04-01 22:45:21 +0200
commitcd6182862a3a9cab9aeb57e92fd027f9292d529b (patch)
treee37f60b53c11c6a0c18bfde276fd3440bcb83ad2
parent5242305a900fb0bd195e6a9fca3b998f7e7c956f (diff)
downloadmpd-cd6182862a3a9cab9aeb57e92fd027f9292d529b.tar.gz
mpd-cd6182862a3a9cab9aeb57e92fd027f9292d529b.tar.xz
mpd-cd6182862a3a9cab9aeb57e92fd027f9292d529b.zip
httpd: don't pass uninitialized page to httpd_client_check_queue()
The httpd_client_check_queue() callback function does not use its "user_data" argument. Don't pass any, and fix the gcc warning.
Diffstat (limited to '')
-rw-r--r--src/output/httpd_output_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/httpd_output_plugin.c b/src/output/httpd_output_plugin.c
index 96491c430..60d17c520 100644
--- a/src/output/httpd_output_plugin.c
+++ b/src/output/httpd_output_plugin.c
@@ -309,7 +309,7 @@ httpd_output_encode_and_play(struct httpd_output *httpd,
return false;
g_mutex_lock(httpd->mutex);
- g_list_foreach(httpd->clients, httpd_client_check_queue, page);
+ g_list_foreach(httpd->clients, httpd_client_check_queue, NULL);
g_mutex_unlock(httpd->mutex);
while ((page = httpd_output_read_page(httpd)) != NULL) {