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
|
@ -68,7 +68,7 @@ head(void)
|
|||
|
||||
(void)time(&now);
|
||||
natp = getnatp(player->cnum);
|
||||
if (player->argp[1] != 0 && *player->argp[1] != 0) {
|
||||
if (player->argp[1] && *player->argp[1]) {
|
||||
news_per = days(atoi(player->argp[1]));
|
||||
if (news_per > days(3))
|
||||
news_per = days(3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue