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
02d4949d
Commit
02d4949d
authored
Jul 09, 2014
by
cremno
Committed by
Yukihiro "Matz" Matsumoto
Jul 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initialize `args` in `parse_args`
parent
a0912df6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c
mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c
+5
-7
No files found.
mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c
View file @
02d4949d
...
...
@@ -39,10 +39,12 @@ print_usage(const char *f)
static
int
parse_args
(
int
argc
,
char
**
argv
,
struct
strip_args
*
args
)
{
static
const
struct
strip_args
initial_args
=
{
0
};
int
i
;
*
args
=
initial_args
;
args
->
argc_start
=
0
;
args
->
argc
=
argc
;
args
->
argv
=
argv
;
args
->
lvar
=
FALSE
;
for
(
i
=
1
;
i
<
argc
;
++
i
)
{
const
size_t
len
=
strlen
(
argv
[
i
]);
...
...
@@ -65,6 +67,7 @@ parse_args(int argc, char **argv, struct strip_args *args)
}
}
args
->
argc_start
=
i
;
return
i
;
}
...
...
@@ -139,11 +142,6 @@ main(int argc, char **argv)
print_usage
(
argv
[
0
]);
return
EXIT_FAILURE
;
}
args
.
argc_start
=
args_result
;
args
.
argc
=
argc
;
args
.
argv
=
argv
;
mrb
=
mrb_open
();
if
(
mrb
==
NULL
)
{
fputs
(
"Invalid mrb_state, exiting mruby-strip
\n
"
,
stderr
);
...
...
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