Commit 5ee74077 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix CID 350312: Uninitialized scalar variable

parent da406c0a
...@@ -1166,6 +1166,7 @@ void packmsgs(ulong packable) ...@@ -1166,6 +1166,7 @@ void packmsgs(ulong packable)
} }
total=0; total=0;
for(l=0;l<smb.status.total_msgs;l++) { for(l=0;l<smb.status.total_msgs;l++) {
ZERO_VAR(msg);
fseek(smb.sid_fp, l * idxreclen,SEEK_SET); fseek(smb.sid_fp, l * idxreclen,SEEK_SET);
printf("%lu of %"PRIu32"\r",l+1,smb.status.total_msgs); printf("%lu of %"PRIu32"\r",l+1,smb.status.total_msgs);
if(!fread(&msg.idx, sizeof(msg.idx), 1, smb.sid_fp)) if(!fread(&msg.idx, sizeof(msg.idx), 1, smb.sid_fp))
......
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