diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-12-14 12:27:57 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-12-14 12:27:57 +0000 |
commit | 35fae251dd2407db61e6a980bd4e55b0a169a42a (patch) | |
tree | d7b2aed7e2d7a902e85a3325acf3aa8aa0387267 /lib/smb.c | |
parent | 52a4d6b8aee78f748924ed9f5217e4287df4593f (diff) | |
download | curl-35fae251dd2407db61e6a980bd4e55b0a169a42a.tar.gz |
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.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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); } |