From adbfdf018b53d0421677d543fb19cbf727d97adc Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Tue, 11 Oct 2005 14:28:00 +0000 Subject: correctly set the filename by setting the diff_file variable; fixes the (null) stuff seen when using rcsdiff; ok niallo@ --- usr.bin/rcs/rcsdiff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin') 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 * 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"); -- cgit v1.2.3