1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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
This commit is contained in:
Andrew Bartlett 2016-06-03 09:53:29 +12:00 committed by Jeremy Allison
parent 2a5183f49e
commit 6888c172d3

View 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;