s3:dbwrap_ctdb: fix two "may be used uninitialized" warnings
authorMichael Adam <obnox@samba.org>
Fri, 11 Dec 2009 23:38:14 +0000 (00:38 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 12 Feb 2010 22:12:11 +0000 (23:12 +0100)
Michael

source3/lib/dbwrap_ctdb.c

index 4c4486c53971f775dc5a0d46f93e8765f1252b41..d70637ed0bdef9f811a1d8e63bf58cebf356db8e 100644 (file)
@@ -389,6 +389,9 @@ static bool pull_newest_from_marshall_buffer(struct ctdb_marshall_buffer *buf,
                return false;
        }
 
+       ZERO_STRUCT(h);
+       ZERO_STRUCT(data);
+
        /*
         * Walk the list of records written during this
         * transaction. If we want to read one we have already