(panel_recursive_cd_to_parent): fix potential null pointer dereference.
commitac9e4c321ae643f0f8a92316b30e8f5239df5b50
authorAndreas Mohr <and@gmx.li>
Wed, 3 Jan 2018 17:22:59 +0000 (3 17:22 +0000)
committerAndrew Borodin <aborodin@vmail.ru>
Sun, 4 Feb 2018 08:30:23 +0000 (4 11:30 +0300)
treec0a812e907bf0e1f680a7ba69f139ab8dc7583a5
parent6aa2cb1cad2d673db8eda4c77c16d9bc4c8e0a53
(panel_recursive_cd_to_parent): fix potential null pointer dereference.

Found by GCC 6.4.0.

panel.c: In function 'panel_reload':
panel.c:4188:40: warning: potential null pointer dereference [-Wnull-dereference]
         if (IS_PATH_SEP (panel_cwd_path[0]) && panel_cwd_path[1] == '\0')

../../lib/global.h:132:26: note: in definition of macro 'IS_PATH_SEP'
 #define IS_PATH_SEP(c) ((c) == PATH_SEP)
                          ^

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/filemanager/panel.c