summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2008-03-22 21:15:54 +0000
committermillert <millert@openbsd.org>2008-03-22 21:15:54 +0000
commitac14fd1a7607f711eab3e9a45fc28a92291ae48e (patch)
tree84d31f85b5f563199192ae1c1d96088f395d856c
parentReintroduce the cputyp variable, and use it to distinguish between sun4u and (diff)
downloadwireguard-openbsd-ac14fd1a7607f711eab3e9a45fc28a92291ae48e.tar.xz
wireguard-openbsd-ac14fd1a7607f711eab3e9a45fc28a92291ae48e.zip
Fix the freeing of two uninitialized strings. OK niallo@
-rw-r--r--usr.bin/rcs/ci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c
index 4b3c79cdd4c..03233c9cedc 100644
--- a/usr.bin/rcs/ci.c
+++ b/usr.bin/rcs/ci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ci.c,v 1.203 2007/09/06 19:38:47 niallo Exp $ */
+/* $OpenBSD: ci.c,v 1.204 2008/03/22 21:15:54 millert Exp $ */
/*
* Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org>
* All rights reserved.
@@ -347,6 +347,7 @@ checkin_diff_file(struct checkin_params *pb)
char rbuf[RCS_REV_BUFSZ];
b1 = b2 = b3 = NULL;
+ path1 = path2 = NULL;
rcsnum_tostr(pb->frev, rbuf, sizeof(rbuf));
if ((b1 = rcs_buf_load(pb->filename, BUF_AUTOEXT)) == NULL) {