diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-10-09 14:11:19 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1997-10-09 14:11:19 +0000 |
| commit | 39573938db5e92a3f8888081994de33cda994ee2 (patch) | |
| tree | fd8ba87f1483c9838dd11afc6583c767646c4b44 /usr.bin | |
| parent | f8ce2ec95f7c82038a7fe97ef1e45220b63cb173 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/rdist/docmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/rdist/docmd.c b/usr.bin/rdist/docmd.c index a5dc82ca2e25..bb919a9075a5 100644 --- a/usr.bin/rdist/docmd.c +++ b/usr.bin/rdist/docmd.c @@ -34,7 +34,7 @@ #ifndef lint /*static char sccsid[] = "From: @(#)docmd.c 8.1 (Berkeley) 6/9/93";*/ static const char rcsid[] = - "$Id$"; + "$Id: docmd.c,v 1.9 1997/02/22 19:56:40 peter Exp $"; #endif /* not lint */ #include "defs.h" @@ -177,7 +177,8 @@ doarrow(filev, files, rhost, cmds) done: if (!nflag) { (void) signal(SIGPIPE, cleanup); - (void) fclose(lfp); + if (lfp) + (void) fclose(lfp); lfp = NULL; } for (sc = cmds; sc != NULL; sc = sc->sc_next) |
