[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Small OpenCVS diff to remove some warnings.



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;