summaryrefslogtreecommitdiffstats
path: root/usr.bin/rdist/server.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1998-04-06 06:18:32 +0000
committercharnier <charnier@FreeBSD.org>1998-04-06 06:18:32 +0000
commitfe8f3a58ea238383f5a92560271c7701d9552f7c (patch)
tree7db2c3940dd081362c1f9a256e449367a455fd26 /usr.bin/rdist/server.c
parent631390e3499ee8aab7e7c6399dc0dab96ffba1ac (diff)
downloadFreeBSD-src-fe8f3a58ea238383f5a92560271c7701d9552f7c.zip
FreeBSD-src-fe8f3a58ea238383f5a92560271c7701d9552f7c.tar.gz
Prevent rdist from dumping core: do not free() pointer before using it.
Add rcsid. Document -D flag (debug mode). Remove unused includes. PR:bin/3158 (part 1)
Diffstat (limited to 'usr.bin/rdist/server.c')
-rw-r--r--usr.bin/rdist/server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/rdist/server.c b/usr.bin/rdist/server.c
index 37ae9c5..0a403b3 100644
--- a/usr.bin/rdist/server.c
+++ b/usr.bin/rdist/server.c
@@ -32,7 +32,11 @@
*/
#ifndef lint
+#if 0
static char sccsid[] = "@(#)server.c 8.1 (Berkeley) 6/9/93";
+#endif
+static const char rcsid[] =
+ "$Id$";
#endif /* not lint */
#include <sys/wait.h>
@@ -41,7 +45,7 @@ static char sccsid[] = "@(#)server.c 8.1 (Berkeley) 6/9/93";
#define ack() (void) write(rem, "\0\n", 2)
#define err() (void) write(rem, "\1\n", 2)
-struct linkbuf *ihead; /* list of files with more than one link */
+struct linkbuf *ihead = NULL; /* list of files with more than one link */
char buf[BUFSIZ]; /* general purpose buffer */
char target[BUFSIZ]; /* target/source directory name */
char *tp; /* pointer to end of target name */
OpenPOWER on IntegriCloud