aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-17 12:06:05 +0200
committerMax Kellermann <max@duempel.org>2008-09-17 12:06:05 +0200
commit26e2f21f6e1fa667244259dfcc29c91c53c3ce67 (patch)
tree9f2842e1f952d0712384349090d0c8b7c07c276b /src/screen.c
parent571cadb2662199084c6d317a34680f68314589bf (diff)
downloadmpd-26e2f21f6e1fa667244259dfcc29c91c53c3ce67.tar.gz
mpd-26e2f21f6e1fa667244259dfcc29c91c53c3ce67.tar.xz
mpd-26e2f21f6e1fa667244259dfcc29c91c53c3ce67.zip
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.
Diffstat (limited to '')
-rw-r--r--src/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index c8e151fa1..5adf31c93 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 */