about summary refs log tree commit diff stats
path: root/src/LYMainLoop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYMainLoop.c')
-rw-r--r--src/LYMainLoop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LYMainLoop.c b/src/LYMainLoop.c
index 8b318ef5..d1520d51 100644
--- a/src/LYMainLoop.c
+++ b/src/LYMainLoop.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYMainLoop.c,v 1.209 2012/07/06 16:18:57 tom Exp $
+ * $LynxId: LYMainLoop.c,v 1.210 2012/07/07 16:28:47 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTAccess.h>
@@ -7069,9 +7069,9 @@ int mainloop(void)
 	    follow_col = -1;
 
 	CTRACE((tfp, "Handling key as %s\n",
-		LYKeycodeToKcmd(cmd)
-		? LYKeycodeToKcmd(cmd)->name
-		: "unknown"));
+		((LYKeycodeToKcmd((LYKeymapCode) cmd) != 0)
+		 ? LYKeycodeToKcmd((LYKeymapCode) cmd)->name
+		 : "unknown")));
 	switch (cmd) {
 	case -1:
 	    HTUserMsg(COMMAND_UNKNOWN);