summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e77401d)
raw | patch | inline | side by side (parent: e77401d)
author | Ihar Hrachyshka <ihar.hrachyshka@gmail.com> | |
Wed, 21 Jul 2010 05:43:01 +0000 (07:43 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Wed, 21 Jul 2010 06:00:42 +0000 (08:00 +0200) |
This fixes a NULL pointer dereference, caused by
get_key_names(CMD_SCREEN_SONG)==NULL.
get_key_names(CMD_SCREEN_SONG)==NULL.
src/screen_help.c | patch | blob | history |
diff --git a/src/screen_help.c b/src/screen_help.c
index 2ac90b774c30bcc125af11eb4a5e02e274b60ed2..faa9603e7aea0aaf1db978cd930852bc3f546f61 100644 (file)
--- a/src/screen_help.c
+++ b/src/screen_help.c
{ 0, CMD_LIST_JUMP, NULL },
{ 0, CMD_TOGGLE_FIND_WRAP, NULL },
{ 0, CMD_LOCATE, NULL },
+#ifdef ENABLE_SONG_SCREEN
{ 0, CMD_SCREEN_SONG, NULL },
+#endif
{ 0, CMD_NONE, NULL },
{ 0, CMD_QUIT, NULL },