[Pvfs2-cvs] commit by pw in pvfs2/src/io/trove/trove-dbpf: dbpf-dspace.c

CVS commit program cvs at parl.clemson.edu
Fri Feb 15 10:09:10 EST 2008


Update of /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf
In directory parlweb1:/tmp/cvs-serv11363/src/io/trove/trove-dbpf

Modified Files:
	dbpf-dspace.c 
Log Message:
trove-dbpf: uninitialized local variable

Set tmp_ptr to NULL before the while loop.  It may not necessarily get
set, and a later if test checks it against NULL.



Index: dbpf-dspace.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/trove/trove-dbpf/dbpf-dspace.c,v
diff -u -p -p -u -r1.152 -r1.153
--- dbpf-dspace.c	8 Nov 2007 21:48:22 -0000	1.152
+++ dbpf-dspace.c	15 Feb 2008 15:09:10 -0000	1.153
@@ -645,6 +645,7 @@ static int dbpf_dspace_iterate_handles_o
     data.size = data.ulen = start_size;
     data.flags = DB_DBT_USERMEM;
 
+    tmp_ptr = NULL;
     while(i < *op_p->u.d_iterate_handles.count_p)
     {
         ret = dbc_p->c_get(dbc_p, &key, &data, DB_MULTIPLE_KEY|DB_NEXT);



More information about the Pvfs2-cvs mailing list