Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
ff6adeda
Commit
ff6adeda
authored
Jan 22, 2012
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: fix an error handling in cmd line parse
parent
2c03c97b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
open-close.c
proto-standard/open-close.c
+2
-2
No files found.
proto-standard/open-close.c
View file @
ff6adeda
...
...
@@ -99,7 +99,7 @@ static void cmd_line_print_help(void)
static
void
cmd_line_parse_two
(
char
*
a
,
int
*
n1
,
int
*
n2
)
{
int
i
,
comma
;
int
i
,
comma
=
0
;
*
n1
=
*
n2
=
0
;
for
(
i
=
0
;
a
[
i
]
!=
'\0'
;
i
++
)
{
if
(
a
[
i
]
==
','
)
{
...
...
@@ -115,7 +115,7 @@ static void cmd_line_parse_two(char *a, int *n1, int *n2)
int
pp_parse_cmdline
(
struct
pp_instance
*
ppi
,
int
argc
,
char
**
argv
)
{
int
i
,
j
;
int
i
;
char
*
a
;
/* cmd line argument */
int
n1
,
n2
;
/* used by cmd_line_parse_two */
...
...
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