diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-23 21:27:16 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-02-23 21:27:16 +0000 |
commit | 4a0632a0846d676c86ed2ed3909e3d74e8520136 (patch) | |
tree | bafbebde023f3655180c5557b704aca437f7b66b /usr.bin/rdist | |
parent | f6b521fece51f2f259178fe4524e51ceeb5129e5 (diff) |
Check lp->target for NULL, not *lp->target as required by dynamic allocation introduce in rev 1.8
Diffstat (limited to 'usr.bin/rdist')
-rw-r--r-- | usr.bin/rdist/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rdist/client.c b/usr.bin/rdist/client.c index 22166100492..4f607ff3d08 100644 --- a/usr.bin/rdist/client.c +++ b/usr.bin/rdist/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.9 1999/02/06 01:52:23 millert Exp $ */ +/* $OpenBSD: client.c,v 1.10 1999/02/23 21:27:15 millert Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -39,7 +39,7 @@ static char RCSid[] = "$From: client.c,v 6.80 1996/02/28 20:34:27 mcooper Exp $"; #else static char RCSid[] = -"$OpenBSD: client.c,v 1.9 1999/02/06 01:52:23 millert Exp $"; +"$OpenBSD: client.c,v 1.10 1999/02/23 21:27:15 millert Exp $"; #endif static char sccsid[] = "@(#)client.c"; @@ -366,7 +366,7 @@ static int sendhardlink(opts, lp, rname, destdir) "sendhardlink: rname='%s' pathname='%s' src='%s' target='%s'\n", rname, lp->pathname, lp->src, lp->target); - if (*lp->target == CNULL) + if (lp->target == NULL) (void) sendcmd(C_RECVHARDLINK, "%o %s %s", opts, lp->pathname, rname); else { |