mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 01:41:50 -05:00
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.
This commit is contained in:
parent
52a4d6b8ae
commit
35fae251dd
@ -234,9 +234,6 @@ static CURLcode smb_setup(struct connectdata *conn)
|
|||||||
if(!req)
|
if(!req)
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
|
||||||
req->state = SMB_REQUESTING;
|
|
||||||
req->result = CURLE_OK;
|
|
||||||
|
|
||||||
/* Parse the URL path */
|
/* Parse the URL path */
|
||||||
return smb_parse_url_path(conn);
|
return smb_parse_url_path(conn);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user