From: Steve Holme Date: Sun, 14 Dec 2014 12:27:57 +0000 (+0000) Subject: smb: Fixed unnecessary initialisation of struct member variables X-Git-Tag: curl-7_40_0~154 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35fae251dd2407db61e6a980bd4e55b0a169a42a;p=thirdparty%2Fcurl.git 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. --- diff --git a/lib/smb.c b/lib/smb.c index 1c1a58010a..ffa75ea19c 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); }