From 1f0dc9dd6e014e0e5d4093fef53c41cd09854897 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 15 Oct 2019 20:09:26 +0100 Subject: [PATCH] fix gtk download window dereferencing boolean as pointer --- frontends/gtk/download.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontends/gtk/download.c b/frontends/gtk/download.c index 0bb5bb362..b981dce4b 100644 --- a/frontends/gtk/download.c +++ b/frontends/gtk/download.c @@ -749,11 +749,10 @@ static void nsgtk_download_store_create_item (struct gui_download_window *dl) /** * Wrapper to GSourceFunc-ify nsgtk_download_update. */ -static gboolean nsgtk_download_gsourcefunc__nsgtk_download_update( - gpointer user_data) +static gboolean +nsgtk_download_gsourcefunc__nsgtk_download_update(gpointer user_data) { - bool *force_update = user_data; - return nsgtk_download_update(*force_update); + return nsgtk_download_update(FALSE); } static struct gui_download_window * @@ -839,7 +838,7 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui) g_timeout_add( UPDATE_RATE, nsgtk_download_gsourcefunc__nsgtk_download_update, - FALSE); + NULL); } nsgtk_downloads_list = g_list_prepend(nsgtk_downloads_list, download);