ldb/tools/ldbtest: initialise msg object
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sat, 6 Apr 2019 22:13:11 +0000 (10:13 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 May 2019 01:15:18 +0000 (01:15 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/tools/ldbtest.c

index 384624c..64b6baa 100644 (file)
@@ -60,7 +60,7 @@ static void add_records(struct ldb_context *ldb,
                        struct ldb_dn *basedn,
                        unsigned int count)
 {
-       struct ldb_message msg;
+       struct ldb_message msg = {0};
        unsigned int i;
 
 #if 0
@@ -149,7 +149,7 @@ static void modify_records(struct ldb_context *ldb,
                           struct ldb_dn *basedn,
                           unsigned int count)
 {
-       struct ldb_message msg;
+       struct ldb_message msg = {0};
        unsigned int i;
 
        for (i=0;i<count;i++) {