diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-04 18:57:38 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-04 18:57:38 +0000 |
commit | 013a31ba815ec8341d0dc66e450be005d22c1ab9 (patch) | |
tree | 4e4035e9a3fd605762c794444211896b362805a3 /usr.bin | |
parent | 6dc76771d7db62df59f4974ea3849648a9678b55 (diff) |
- explicitly set some pointers to NULL since they are tested on error.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/rcs.c | 4 |
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; |