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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 1 Apr 2010 07:39:15 +0000 (09:39 +0200)
Michael
(cherry picked from commit fb981cdb8282d3b9b46d9ca515a5685add232a72)
(cherry picked from commit dfbc45f6d6ef2fb99652992e291b1bf5276dec28)

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