summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2006-06-04 18:57:38 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2006-06-04 18:57:38 +0000
commit013a31ba815ec8341d0dc66e450be005d22c1ab9 (patch)
tree4e4035e9a3fd605762c794444211896b362805a3 /usr.bin/rcs
parent6dc76771d7db62df59f4974ea3849648a9678b55 (diff)
- explicitly set some pointers to NULL since they are tested on error.
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r--usr.bin/rcs/rcs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/rcs/rcs.c b/usr.bin/rcs/rcs.c
index 7044243915c..754f1af66f1 100644
--- a/usr.bin/rcs/rcs.c
+++ b/usr.bin/rcs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.16 2006/06/04 03:00:29 niallo Exp $ */
+/* $OpenBSD: rcs.c,v 1.17 2006/06/04 18:57:37 niallo Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -367,6 +367,7 @@ rcs_write(RCSFILE *rfp)
size_t len;
int fd, from_fd, to_fd;
+ fn = NULL;
from_fd = to_fd = fd = -1;
if (rfp->rf_flags & RCS_SYNCED)
@@ -1357,6 +1358,7 @@ rcs_rev_remove(RCSFILE *rf, RCSNUM *rev)
BUF *newdeltatext, *nextbuf, *prevbuf, *newdiff;
nextrdp = prevrdp = NULL;
+ path_tmp1 = path_tmp2 = NULL;
if (rev == RCS_HEAD_REV)
rev = rf->rf_head;