Commit 831438fa authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Zero-init 'msg' before use

Addresses CID 350312
parent 2cd7d767
......@@ -1061,6 +1061,7 @@ void packmsgs(ulong packable)
m=n=0;
for(l=smb.status.header_offset;l<length;l+=size) {
printf("\r%2lu%% ",(long)(100.0/((float)length/l)));
ZERO_VAR(msg);
msg.idx.offset=l;
if((i=smb_lockmsghdr(&smb,&msg))!=0) {
printf("\n(%06lX) smb_lockmsghdr returned %d\n",l,i);
......
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