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:
Markus Armbruster 2009-03-23 20:17:44 +01:00
parent 615681ce16
commit 90f8f2b099
15 changed files with 23 additions and 24 deletions

View file

@ -52,7 +52,7 @@ comtch(char *command, struct cmndstr *coms, int comstat)
if (command == 0 || *command == 0)
return M_IGNORE;
status = M_NOTFOUND;
for (com = coms; com->c_form != 0; com++) {
for (com = coms; com->c_form; com++) {
if ((com->c_permit & comstat) != com->c_permit)
continue;
switch (mineq(command, com->c_form)) {