Update of /cvsroot/libsysio/libsysio/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21071/src
Modified Files:
reconcile.c
Log Message:
Modified to pass lint checks. There was a claim that a field in a record
was possibly used before initialization. The reality was that enough
of the record was initialized to cause the rest to be superfluous at
initialization. Lint couldn't tell, of course, so we just initialize
the entire record now.
Index: reconcile.c
===================================================================
RCS file: /cvsroot/libsysio/libsysio/src/reconcile.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -b -B -p -r1.1 -r1.2
--- reconcile.c 25 Oct 2004 14:29:16 -0000 1.1
+++ reconcile.c 21 Sep 2009 14:46:21 -0000 1.2
@@ -9,7 +9,7 @@
* terms of the GNU Lesser General Public License
* (see cit/LGPL or http://www.gnu.org/licenses/lgpl.html)
*
- * Cplant(TM) Copyright 1998-2004 Sandia Corporation.
+ * Cplant(TM) Copyright 1998-2009 Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* license for use of this work by or on behalf of the US Government.
* Export of this program may require a license from the United States
@@ -36,7 +36,7 @@
* Lee Ward
* Sandia National Laboratories, New Mexico
* P.O. Box 5800
- * Albuquerque, NM 87185-1110
+ * Albuquerque, NM 87185-1319
*
* le...@sa...
*/
@@ -86,15 +86,14 @@ _sysio_validx(const struct intnl_xtvec *
_SYSIO_OFF_T limit)
{
ssize_t acc, cc;
- struct iovec iovec;
- struct intnl_xtvec xtvec;
+ struct iovec iovec = { NULL, 0 };
+ struct intnl_xtvec xtvec = { 0, 0 };
_SYSIO_OFF_T off;
if (!(xtvlen && iovlen))
return -EINVAL;
acc = 0;
- xtvec.xtv_len = iovec.iov_len = 0;
do {
while (!xtvec.xtv_len) {
if (!xtvlen--)
|