diff options
author | charnier <charnier@FreeBSD.org> | 1998-04-06 06:18:32 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1998-04-06 06:18:32 +0000 |
commit | fe8f3a58ea238383f5a92560271c7701d9552f7c (patch) | |
tree | 7db2c3940dd081362c1f9a256e449367a455fd26 /usr.bin/rdist/server.c | |
parent | 631390e3499ee8aab7e7c6399dc0dab96ffba1ac (diff) | |
download | FreeBSD-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.c | 6 |
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 */ |