Commit 2cd7d767 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Zero-init 'ms'g' before use

Addresses CID 350316
parent faa31747
...@@ -620,6 +620,7 @@ void viewmsgs(ulong start, ulong count, BOOL verbose) ...@@ -620,6 +620,7 @@ void viewmsgs(ulong start, ulong count, BOOL verbose)
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