summaryrefslogtreecommitdiffstats
path: root/usr.bin/mklocale
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2007-09-21 01:55:11 +0000
committerkevlo <kevlo@FreeBSD.org>2007-09-21 01:55:11 +0000
commitee96f0aa6f321a84319c55663b2a1def01470a55 (patch)
tree813441e72922e9af186945ffa372cb1f915e6a11 /usr.bin/mklocale
parenta9d79aef66de5019536c4de3155086af3fe25cdf (diff)
downloadFreeBSD-src-ee96f0aa6f321a84319c55663b2a1def01470a55.zip
FreeBSD-src-ee96f0aa6f321a84319c55663b2a1def01470a55.tar.gz
Use NULL instead of 0 for the return value of fopen().
Approved by: re (kensmith)
Diffstat (limited to 'usr.bin/mklocale')
-rw-r--r--usr.bin/mklocale/yacc.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/mklocale/yacc.y b/usr.bin/mklocale/yacc.y
index 84149f0..899b186 100644
--- a/usr.bin/mklocale/yacc.y
+++ b/usr.bin/mklocale/yacc.y
@@ -234,7 +234,7 @@ main(int ac, char *av[])
break;
case 'o':
locale_file = optarg;
- if ((fp = fopen(locale_file, "w")) == 0)
+ if ((fp = fopen(locale_file, "w")) == NULL)
err(1, "%s", locale_file);
atexit(cleanout);
break;
OpenPOWER on IntegriCloud