Skip to content
Snippets Groups Projects
Commit 31864868 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Zero-init 'msg' before use

CID 350279
parent 74edb9c2
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -502,6 +502,7 @@ void listmsgs(ulong start, ulong count)
if(!count)
count=~0;
while(l<count) {
ZERO_VAR(msg);
fseek(smb.sid_fp,((start-1L) + l)*idxreclen,SEEK_SET);
if(!fread(&msg.idx,sizeof(msg.idx),1,smb.sid_fp))
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment