diff options
author | 2012-10-30 20:03:16 +0000 | |
---|---|---|
committer | 2012-10-30 20:03:16 +0000 | |
commit | a99cba7ee5ecbdd23019286f8779873348ae8a53 (patch) | |
tree | 7aa62d8efbe5b0ac80172542bf936736a9ed2ab5 | |
parent | Nuke dhclient-script and dhclient.conf 'script' directive. Do all (diff) | |
download | wireguard-openbsd-a99cba7ee5ecbdd23019286f8779873348ae8a53.tar.xz wireguard-openbsd-a99cba7ee5ecbdd23019286f8779873348ae8a53.zip |
fdopen(3) return a FILE * not an int, so compare against NULL.
no functional change
OK millert@
-rw-r--r-- | usr.bin/sort/sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sort/sort.c b/usr.bin/sort/sort.c index adfcca6b2de..4c8e631e811 100644 --- a/usr.bin/sort/sort.c +++ b/usr.bin/sort/sort.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sort.c,v 1.39 2009/12/22 19:47:02 schwarze Exp $ */ +/* $OpenBSD: sort.c,v 1.40 2012/10/30 20:03:16 gsoares Exp $ */ /*- * Copyright (c) 1993 @@ -281,7 +281,7 @@ main(int argc, char *argv[]) (void)umask(um); if ((outfd = mkstemp(toutpath)) == -1 || fchmod(outfd, DEFFILEMODE & ~um) == -1 || - (outfp = fdopen(outfd, "w")) == 0) + (outfp = fdopen(outfd, "w")) == NULL) err(2, "%s", toutpath); outfile = toutpath; |