From cd6182862a3a9cab9aeb57e92fd027f9292d529b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 1 Apr 2009 22:45:21 +0200 Subject: [PATCH] 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. --- src/output/httpd_output_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {