summaryrefslogtreecommitdiff
path: root/lib/dbwrap
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2016-06-03 09:53:29 +1200
committerJeremy Allison <jra@samba.org>2016-06-08 08:48:57 +0200
commit6888c172d3f2ed471fac626ee9a50bb092367054 (patch)
tree4bc12f15b16f251c5395bb972e87f69dfd20697e /lib/dbwrap
parent2a5183f49efc1d407ed36c457d8a953e1363eb42 (diff)
downloadsamba-6888c172d3f2ed471fac626ee9a50bb092367054.tar.gz
build: Address may be used uninitialized in this function on Ubuntu 10.04
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
Diffstat (limited to 'lib/dbwrap')
-rw-r--r--lib/dbwrap/dbwrap_rbt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dbwrap/dbwrap_rbt.c b/lib/dbwrap/dbwrap_rbt.c
index 3b5e5895cd5..eb5ef10fddc 100644
--- a/lib/dbwrap/dbwrap_rbt.c
+++ b/lib/dbwrap/dbwrap_rbt.c
@@ -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;