From: Max Kellermann Date: Wed, 17 Sep 2008 10:06:05 +0000 (+0200) Subject: screen: before calling update(), check if it is defined X-Git-Tag: v0.12_alpha1~280 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=26e2f21f6e1fa667244259dfcc29c91c53c3ce67;p=ncmpc.git 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. --- 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 */