Don't use 0 as null pointer constant, part 3
This part replaces E == 0 by !E, where E has pointer type.
This commit is contained in:
parent
90f8f2b099
commit
6ae4eca045
79 changed files with 121 additions and 121 deletions
|
@ -94,7 +94,7 @@ info(void)
|
|||
if (fp == NULL) {
|
||||
/* may be a "partial" request. */
|
||||
info_dp = opendir(infodir);
|
||||
if (info_dp == 0) {
|
||||
if (!info_dp) {
|
||||
pr("Can't open info dir\n");
|
||||
logerror("Can't open info dir \"%s\"\n", infodir);
|
||||
return RET_FAIL;
|
||||
|
@ -174,7 +174,7 @@ apro(void)
|
|||
int lhitlim;
|
||||
struct stat statb;
|
||||
|
||||
if (player->argp[1] == 0 || !*player->argp[1]) {
|
||||
if (!player->argp[1] || !*player->argp[1]) {
|
||||
pr("Apropos what?\n");
|
||||
return RET_FAIL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue