build: Address may be used uninitialized in this function on Ubuntu 10.04
authorAndrew Bartlett <abartlet@samba.org>
Thu, 2 Jun 2016 21:53:29 +0000 (09:53 +1200)
committerJeremy Allison <jra@samba.org>
Wed, 8 Jun 2016 06:48:57 +0000 (08:48 +0200)
This is not found by modern compilers, but prevents the -Werror -O3 build on Ubuntu 10.04

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Jun  8 08:48:57 CEST 2016 on sn-devel-144

lib/dbwrap/dbwrap_rbt.c

index 3b5e5895cd5a48b671bf5c8af6858823280d7244..eb5ef10fddc8d91ae75821ec82a81bc6f5cf8108 100644 (file)
@@ -277,7 +277,8 @@ static bool db_rbt_search_internal(struct db_context *db, TDB_DATA key,
        struct rb_node *n;
        bool found = false;
        struct db_rbt_node *r = NULL;
-       TDB_DATA search_key, search_val;
+       TDB_DATA search_key = { 0 };
+       TDB_DATA search_val = { 0 };
 
        n = ctx->tree.rb_node;