diff options
| author | rillig <rillig@NetBSD.org> | 2020-12-31 17:39:36 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2020-12-31 17:39:36 +0000 |
| commit | cee5daf61d2e8e5c5cb3d49c41cac46b9d10c5ce (patch) | |
| tree | 862412ec87c8e5db8d7f261eb42b3f18578e118f /usr.bin/make/parse.c | |
| parent | e01e1449b22294b8951017aa6e2c8746332d9910 (diff) | |
make(1): replace pointers in controlling conditions with booleans
Diffstat (limited to 'usr.bin/make/parse.c')
| -rw-r--r-- | usr.bin/make/parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index c4e21466208..61597f679ee 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -1,4 +1,4 @@ -/* $NetBSD: parse.c,v 1.524 2020/12/30 10:03:16 rillig Exp $ */ +/* $NetBSD: parse.c,v 1.525 2020/12/31 17:39:36 rillig Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -109,7 +109,7 @@ #include "pathnames.h" /* "@(#)parse.c 8.3 (Berkeley) 3/19/94" */ -MAKE_RCSID("$NetBSD: parse.c,v 1.524 2020/12/30 10:03:16 rillig Exp $"); +MAKE_RCSID("$NetBSD: parse.c,v 1.525 2020/12/31 17:39:36 rillig Exp $"); /* types and constants */ @@ -2401,7 +2401,7 @@ Parse_SetInput(const char *name, int lineno, int fd, buf = curFile->readMore(curFile->readMoreArg, &len); if (buf == NULL) { /* Was all a waste of time ... */ - if (curFile->fname) + if (curFile->fname != NULL) free(curFile->fname); free(curFile); return; |
