Navigation Menu

Skip to content

Commit

Permalink
smb: Fixed unnecessary initialisation of struct member variables
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
captain-caveman2k committed Dec 14, 2014
1 parent 52a4d6b commit 35fae25
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/smb.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 35fae25

Please sign in to comment.