[PATCH] Fix the O3 developer build

Jeremy Allison jra at samba.org
Tue Apr 28 10:08:08 MDT 2015


On Tue, Apr 28, 2015 at 10:44:24AM +0200, Volker Lendecke wrote:
> 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

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

This one needs :

> +     struct lsa_OpenTrustedDomain opn = {{0},{0}};

to initialize the in and out structs to remove the
warning and pass autobuild.


More information about the samba-technical mailing list