summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/rdist/docmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/rdist/docmd.c b/usr.bin/rdist/docmd.c
index a5dc82c..bb919a9 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)
OpenPOWER on IntegriCloud