[PATCH] rpc_cli: Remove some unnecessary initializations

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Jul 8 05:59:32 MDT 2013


On Mon, Jul 08, 2013 at 12:48:46PM +0200, Volker Lendecke wrote:
> Hi!
> 
> Please review&push

Now hopefully with patch

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 666a13247bc6fcc5eafd3e79f4d2c38eabdbe56b Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Mon, 8 Jul 2013 12:35:46 +0200
Subject: [PATCH] rpc_cli: Remove some unnecessary initializations

tevent_req_create already initializes "state" to 0

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 source3/rpc_client/cli_pipe.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 2e978ef..497df24 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -725,9 +725,6 @@ static struct tevent_req *rpc_api_pipe_send(TALLOC_CTX *mem_ctx,
 	state->ev = ev;
 	state->cli = cli;
 	state->expected_pkt_type = expected_pkt_type;
-	state->incoming_frag = data_blob_null;
-	state->reply_pdu = data_blob_null;
-	state->reply_pdu_offset = 0;
 	state->endianess = DCERPC_DREP_LE;
 
 	/*
-- 
1.7.9.5



More information about the samba-technical mailing list