[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Small OpenCVS diff to remove some warnings.
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Small OpenCVS diff to remove some warnings.
- From: Dunceor <dunceor_(_at_)_gmail_(_dot_)_com>
- Date: Sun, 16 Apr 2006 21:27:04 +0200
This is a very small diff to remove warnings about using uninitialized
variables.
Thanks.
// Dunceor
Index: file.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/file.c,v
retrieving revision 1.137
diff -u -r1.137 file.c
--- file.c 14 Apr 2006 02:45:35 -0000 1.137
+++ file.c 16 Apr 2006 17:47:23 -0000
@@ -790,6 +790,8 @@
struct cvs_flist dirs;
int nfiles, ndirs;
+ cfp = NULL;
+
if ((flags & CF_KNOWN) && cf->cf_cvstat == CVS_FST_UNKNOWN)
return (0);
Index: rcs.c
===================================================================
RCS file: /cvs/src/usr.bin/cvs/rcs.c,v
retrieving revision 1.169
diff -u -r1.169 rcs.c
--- rcs.c 14 Apr 2006 02:49:43 -0000 1.169
+++ rcs.c 16 Apr 2006 17:47:30 -0000
@@ -3019,6 +3019,7 @@
bp = NULL;
ret = -1;
+ fsize = 0;
content = NULL;
oldrev = NULL;
Visit your host, monkey.org