Code

screen_browser: check if filelist is set
authorMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 20:51:07 +0000 (21:51 +0100)
committerMax Kellermann <max@duempel.org>
Tue, 18 Nov 2008 20:51:07 +0000 (21:51 +0100)
commitc985ba258d95fb267e35a96e92eb6f8461b83668
treed89e7ebe6ad6343f389c3aeb5fc1019d24fc080f
parentcd1663f4ce44fcb20bae7782bb71e96876333125
screen_browser: check if filelist is set

When calling browser_change_directory() before a filelist was set,
ncmpc would crash due to a NULL pointer dereference.  This scenario is
not possible currently, since the open() method allocates the
filelist.
src/screen_browser.c