diff options
author | Max Kellermann <max@duempel.org> | 2008-09-17 12:06:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-17 12:06:05 +0200 |
commit | 26e2f21f6e1fa667244259dfcc29c91c53c3ce67 (patch) | |
tree | 9f2842e1f952d0712384349090d0c8b7c07c276b /src | |
parent | 571cadb2662199084c6d317a34680f68314589bf (diff) | |
download | mpd-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 'src')
-rw-r--r-- | src/screen.c | 2 |
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 */ |