Don't use 0 as null pointer constant, part 2
This part replaces E != 0 by E, where E has pointer type.
This commit is contained in:
parent
615681ce16
commit
90f8f2b099
15 changed files with 23 additions and 24 deletions
|
@ -155,7 +155,7 @@ keylookup(char *command, struct keymatch *tbl)
|
|||
|
||||
if (command == 0 || *command == 0)
|
||||
return NULL;
|
||||
for (kp = tbl; kp->km_key != 0; kp++) {
|
||||
for (kp = tbl; kp->km_key; kp++) {
|
||||
if (strcmp(kp->km_key, command) == 0)
|
||||
return kp;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue