[PATCH] Fix the O3 developer build

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Apr 28 02:44:24 MDT 2015


Hi!

Another one where gcc complained about uninitialized
variables.

Review&push appreciated!

Thanks,

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From a999d7e6bfe4f539463086b60c931d7fbdf3da28 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Sat, 14 Mar 2015 22:41:36 +0100
Subject: [PATCH] Fix the O3 developer build

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 source4/rpc_server/lsa/dcesrv_lsa.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c
index 0dbe9d1..d3aab2d 100644
--- a/source4/rpc_server/lsa/dcesrv_lsa.c
+++ b/source4/rpc_server/lsa/dcesrv_lsa.c
@@ -2148,7 +2148,7 @@ static NTSTATUS dcesrv_lsa_DeleteTrustedDomain(struct dcesrv_call_state *dce_cal
 				      struct lsa_DeleteTrustedDomain *r)
 {
 	NTSTATUS status;
-	struct lsa_OpenTrustedDomain opn;
+	struct lsa_OpenTrustedDomain opn = {0};
 	struct lsa_DeleteObject del;
 	struct dcesrv_handle *h;
 
@@ -2294,7 +2294,7 @@ static NTSTATUS dcesrv_lsa_QueryTrustedDomainInfoBySid(struct dcesrv_call_state
 						struct lsa_QueryTrustedDomainInfoBySid *r)
 {
 	NTSTATUS status;
-	struct lsa_OpenTrustedDomain opn;
+	struct lsa_OpenTrustedDomain opn = {0};
 	struct lsa_QueryTrustedDomainInfo query;
 	struct dcesrv_handle *h;
 
@@ -2366,7 +2366,7 @@ static NTSTATUS dcesrv_lsa_QueryTrustedDomainInfoByName(struct dcesrv_call_state
 						 struct lsa_QueryTrustedDomainInfoByName *r)
 {
 	NTSTATUS status;
-	struct lsa_OpenTrustedDomainByName opn;
+	struct lsa_OpenTrustedDomainByName opn = {0};
 	struct lsa_QueryTrustedDomainInfo query;
 	struct dcesrv_handle *h;
 
-- 
1.9.1



More information about the samba-technical mailing list