]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
smb: remove double assign
authorDaniel Stenberg <daniel@haxx.se>
Thu, 13 Apr 2023 07:33:55 +0000 (09:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 13 Apr 2023 15:12:55 +0000 (17:12 +0200)
The same value is assigned the same value already a few lines above.
Pointed out by PVS.

Ref: #10929
Closes #10945

lib/smb.c

index 076200472eaa1c212d8a070ebf3c5199650aca6a..a1e444ee6b97e6bd5e97fcba3858700822e5a253 100644 (file)
--- 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;