summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6bb989)
raw | patch | inline | side by side (parent: f6bb989)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Wed, 21 Dec 2011 20:40:52 +0000 (21:40 +0100) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Wed, 21 Dec 2011 20:40:52 +0000 (21:40 +0100) |
src/command.c | patch | blob | history |
diff --git a/src/command.c b/src/command.c
index 82232aff6ba49e3a0499ed2b42d28e55780d446c..6d06368123e47918c02dcd083eae8e0b7a124cbe 100644 (file)
--- a/src/command.c
+++ b/src/command.c
{
int i = 0;
- while (key && c && c[i].name) {
+ assert(key != 0);
+ assert(c != NULL);
+
+ while (c[i].name) {
if (c[i].keys[0] == key ||
c[i].keys[1] == key ||
c[i].keys[2] == key)