Commit 31864868 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Zero-init 'msg' before use

CID 350279
parent 74edb9c2
...@@ -502,6 +502,7 @@ void listmsgs(ulong start, ulong count) ...@@ -502,6 +502,7 @@ void listmsgs(ulong start, ulong count)
if(!count) if(!count)
count=~0; count=~0;
while(l<count) { while(l<count) {
ZERO_VAR(msg);
fseek(smb.sid_fp,((start-1L) + l)*idxreclen,SEEK_SET); fseek(smb.sid_fp,((start-1L) + l)*idxreclen,SEEK_SET);
if(!fread(&msg.idx,sizeof(msg.idx),1,smb.sid_fp)) if(!fread(&msg.idx,sizeof(msg.idx),1,smb.sid_fp))
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment