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
5ee74077
Commit
5ee74077
authored
Mar 13, 2022
by
Rob Swindell
💬
Browse files
Fix CID 350312: Uninitialized scalar variable
parent
da406c0a
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 @
5ee74077
...
@@ -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
))
...
...
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