From 35fae251dd2407db61e6a980bd4e55b0a169a42a Mon Sep 17 00:00:00 2001
From: Steve Holme <steve_holme@hotmail.com>
Date: Sun, 14 Dec 2014 12:27:57 +0000
Subject: smb: Fixed unnecessary initialisation of struct member variables

There is no need to set the 'state' and 'result' member variables to
SMB_REQUESTING (0) and CURLE_OK (0) after the allocation via calloc()
as calloc() initialises the contents to zero.
---
 lib/smb.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/smb.c b/lib/smb.c
index 1c1a58010..ffa75ea19 100644
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -234,9 +234,6 @@ static CURLcode smb_setup(struct connectdata *conn)
   if(!req)
     return CURLE_OUT_OF_MEMORY;
 
-  req->state = SMB_REQUESTING;
-  req->result = CURLE_OK;
-
   /* Parse the URL path */
   return smb_parse_url_path(conn);
 }
-- 
cgit v1.2.3