Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
2cd7d767
Commit
2cd7d767
authored
Mar 01, 2022
by
Rob Swindell
💬
Browse files
Zero-init 'ms'g' before use
Addresses CID 350316
parent
faa31747
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/sbbs3/smbutil.c
src/sbbs3/smbutil.c
+1
-0
No files found.
src/sbbs3/smbutil.c
View file @
2cd7d767
...
...
@@ -620,6 +620,7 @@ void viewmsgs(ulong start, ulong count, BOOL verbose)
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment