Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
29556a49
Unverified
Commit
29556a49
authored
Jul 09, 2021
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cdump.c: avoid uninitialized local variable.
parent
b5aa08fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/cdump.c
src/cdump.c
+1
-2
No files found.
src/cdump.c
View file @
29556a49
...
...
@@ -274,7 +274,7 @@ cdump_debug(mrb_state *mrb, const char *name, int n, mrb_irep_debug_info *info,
const
char
*
filename
;
mrb_int
file_len
;
int
len
,
i
;
const
char
*
line_type
;
const
char
*
line_type
=
"mrb_debug_line_ary"
;
if
(
!
simple_debug_info
(
info
))
return
MRB_DUMP_INVALID_IREP
;
...
...
@@ -290,7 +290,6 @@ cdump_debug(mrb_state *mrb, const char *name, int n, mrb_irep_debug_info *info,
switch
(
info
->
files
[
0
]
->
line_type
)
{
case
mrb_debug_line_ary
:
line_type
=
"mrb_debug_line_ary"
;
fprintf
(
fp
,
"static uint16_t %s_debug_lines_%d[%d] = {"
,
name
,
n
,
len
);
for
(
i
=
0
;
i
<
len
;
i
++
)
{
if
(
i
%
10
==
0
)
fputs
(
"
\n
"
,
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