diff options
author | ssouhlal <ssouhlal@FreeBSD.org> | 2005-01-25 14:34:57 +0000 |
---|---|---|
committer | ssouhlal <ssouhlal@FreeBSD.org> | 2005-01-25 14:34:57 +0000 |
commit | 0b08736243310e16c905e71910a1169f221f2ac8 (patch) | |
tree | 21c2c56ffeed951fb6b6db6eb767badcf8d9d154 /usr.bin/xinstall | |
parent | 5ad9327a22bfc1149b585310dccd764229f01506 (diff) | |
download | FreeBSD-src-0b08736243310e16c905e71910a1169f221f2ac8.zip FreeBSD-src-0b08736243310e16c905e71910a1169f221f2ac8.tar.gz |
- Make WARNS?= 6 clean
- Add WARNS?= 6
Approved by: stefanf, grehan (mentor)
Diffstat (limited to 'usr.bin/xinstall')
-rw-r--r-- | usr.bin/xinstall/Makefile | 1 | ||||
-rw-r--r-- | usr.bin/xinstall/xinstall.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/xinstall/Makefile b/usr.bin/xinstall/Makefile index e6ff88e..594f1dc 100644 --- a/usr.bin/xinstall/Makefile +++ b/usr.bin/xinstall/Makefile @@ -4,5 +4,6 @@ PROG= xinstall PROGNAME= install MAN= install.1 +WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/xinstall/xinstall.c b/usr.bin/xinstall/xinstall.c index 441c108..58cdcca 100644 --- a/usr.bin/xinstall/xinstall.c +++ b/usr.bin/xinstall/xinstall.c @@ -270,6 +270,8 @@ install(const char *from_name, const char *to_name, u_long fset, u_int flags) char backup[MAXPATHLEN], *p, pathbuf[MAXPATHLEN], tempfile[MAXPATHLEN]; files_match = 0; + from_fd = -1; + to_fd = -1; /* If try to install NULL file to a directory, fails. */ if (flags & DIRECTORY || strcmp(from_name, _PATH_DEVNULL)) { |