From 26e2f21f6e1fa667244259dfcc29c91c53c3ce67 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 17 Sep 2008 12:06:05 +0200 Subject: [PATCH] screen: before calling update(), check if it is defined That seems to be a fn->paint was checked, then the code called fn->update(). Fix this. --- src/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.c b/src/screen.c index c8e151f..5adf31c 100644 --- a/src/screen.c +++ b/src/screen.c @@ -746,7 +746,7 @@ screen_update(mpdclient_t *c) paint_top_window("", c, 0); /* update the main window */ - if (mode_fn && mode_fn->paint) + if (mode_fn && mode_fn->update != NULL) mode_fn->update(screen, c); /* update progress window */ -- 2.30.2