diff options
author | 2014-07-05 06:33:54 +0000 | |
---|---|---|
committer | 2014-07-05 06:33:54 +0000 | |
commit | 72db5e53e07bd5b6792be9598cb1592385f038a0 (patch) | |
tree | b48768b3eed5de1900982c3f040034f20e7579bc | |
parent | Assume C89: stdargs, const, and setvbuf() (diff) | |
download | wireguard-openbsd-72db5e53e07bd5b6792be9598cb1592385f038a0.tar.xz wireguard-openbsd-72db5e53e07bd5b6792be9598cb1592385f038a0.zip |
A local array can't be NULL
-rw-r--r-- | usr.bin/rdistd/filesys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rdistd/filesys.c b/usr.bin/rdistd/filesys.c index 8323f98de54..0b0ee06e9fe 100644 --- a/usr.bin/rdistd/filesys.c +++ b/usr.bin/rdistd/filesys.c @@ -1,4 +1,4 @@ -/* $OpenBSD: filesys.c,v 1.12 2011/04/10 15:47:28 krw Exp $ */ +/* $OpenBSD: filesys.c,v 1.13 2014/07/05 06:33:54 guenther Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -152,7 +152,7 @@ find_file(char *pathname, struct stat *statbuf, int *isvalid) if (strcmp(pathname, file) == 0) *isvalid = 1; - return((file && *file) ? file : NULL); + return(*file ? file : NULL); } #if defined(NFS_CHECK) || defined(RO_CHECK) |