aboutsummaryrefslogtreecommitdiff
path: root/lib/smb.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-14 12:27:57 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-14 12:27:57 +0000
commit35fae251dd2407db61e6a980bd4e55b0a169a42a (patch)
treed7b2aed7e2d7a902e85a3325acf3aa8aa0387267 /lib/smb.c
parent52a4d6b8aee78f748924ed9f5217e4287df4593f (diff)
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.
Diffstat (limited to 'lib/smb.c')
-rw-r--r--lib/smb.c3
1 files changed, 0 insertions, 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);
}