From: Daniel Stenberg Date: Thu, 13 Apr 2023 07:33:55 +0000 (+0200) Subject: smb: remove double assign X-Git-Tag: curl-8_1_0~158 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d50045509c85724a354fd289c0119f29072e3167;p=thirdparty%2Fcurl.git smb: remove double assign The same value is assigned the same value already a few lines above. Pointed out by PVS. Ref: #10929 Closes #10945 --- diff --git a/lib/smb.c b/lib/smb.c index 076200472e..a1e444ee6b 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -819,7 +819,6 @@ static CURLcode smb_request_state(struct Curl_easy *data, bool *done) next_state = SMB_UPLOAD; } else { - smb_m = (const struct smb_nt_create_response*) msg; data->req.size = smb_swap64(smb_m->end_of_file); if(data->req.size < 0) { req->result = CURLE_WEIRD_SERVER_REPLY;