diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-04 20:32:57 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-04 20:32:57 +0000 |
commit | 63ab4db440f779f012601b9f6cbfbf8dbbb36753 (patch) | |
tree | e9fa5140619e839625d2dc0d515a6984cadef94f /usr.bin/rcs | |
parent | 442ec96cc19a3d89990db123d7af119fd7ac4fd3 (diff) |
- initialise path pointers to NULL since error code checks for that.
Diffstat (limited to 'usr.bin/rcs')
-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 63ab036f468..2140c994c23 100644 --- a/usr.bin/rcs/rcsdiff.c +++ b/usr.bin/rcs/rcsdiff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsdiff.c,v 1.65 2006/05/27 05:49:14 ray Exp $ */ +/* $OpenBSD: rcsdiff.c,v 1.66 2006/06/04 20:32:56 niallo Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -196,6 +196,7 @@ rcsdiff_file(RCSFILE *file, RCSNUM *rev, const char *filename) diff_rev1 = rev; diff_rev2 = NULL; + path1 = path2 = NULL; if ((fd = open(filename, O_RDONLY)) == -1) { warn("%s", filename); @@ -283,6 +284,7 @@ rcsdiff_rev(RCSFILE *file, RCSNUM *rev1, RCSNUM *rev2) diff_rev1 = rev1; diff_rev2 = rev2; + path1 = path2 = NULL; rcsnum_tostr(rev1, rbuf1, sizeof(rbuf1)); if (!(flags & QUIET)) |