diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-10-11 14:28:00 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-10-11 14:28:00 +0000 |
commit | adbfdf018b53d0421677d543fb19cbf727d97adc (patch) | |
tree | afd8831bc2c1a255d594d95a51f4d7060c291f52 /usr.bin | |
parent | 84e663e1f454a9c082c3032e00d80c28b44bfc3d (diff) |
correctly set the filename by setting the diff_file variable;
fixes the (null) stuff seen when using rcsdiff;
ok niallo@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/rcsdiff.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c index 22aa5c93bd5..710fe5b2a85 100644 --- a/usr.bin/rcs/rcsdiff.c +++ b/usr.bin/rcs/rcsdiff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.7 2005/10/09 20:55:27 niallo Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.8 2005/10/11 14:27:59 joris Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -113,6 +113,8 @@ rcsdiff_main(int argc, char **argv) else frev = rev; + diff_file = argv[i]; + if (rev2 == NULL) { if (rcsdiff_file(file, frev, argv[i]) < 0) { cvs_log(LP_ERR, "failed to rcsdiff"); |