Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gptfdisk
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
gptfdisk
Commits
092b4ca5
Commit
092b4ca5
authored
6 years ago
by
Scott Lobdell
Browse files
Options
Downloads
Plain Diff
Merge QP1A.190228.005
Change-Id: I9c747075495b86a1f2418c608820ba3d4dedbb5f
parents
3f3ba1fc
db296b2c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
android_popt.cc
+3
-1
3 additions, 1 deletion
android_popt.cc
with
3 additions
and
1 deletion
android_popt.cc
+
3
−
1
View file @
092b4ca5
...
@@ -29,8 +29,10 @@ poptContext poptGetContext(const char *name, int argc, const char **argv,
...
@@ -29,8 +29,10 @@ poptContext poptGetContext(const char *name, int argc, const char **argv,
for
(;
options
[
count
].
longName
;
count
++
)
{
for
(;
options
[
count
].
longName
;
count
++
)
{
}
}
// getopt_long expects the last element to be null
// so allocate count + 1
struct
option
*
long_options
=
(
struct
option
*
)
struct
option
*
long_options
=
(
struct
option
*
)
calloc
(
count
,
sizeof
(
struct
option
));
calloc
(
count
+
1
,
sizeof
(
struct
option
));
for
(
int
i
=
0
;
options
[
i
].
longName
;
i
++
)
{
for
(
int
i
=
0
;
options
[
i
].
longName
;
i
++
)
{
long_options
[
i
].
name
=
options
[
i
].
longName
;
long_options
[
i
].
name
=
options
[
i
].
longName
;
long_options
[
i
].
flag
=
0
;
long_options
[
i
].
flag
=
0
;
...
...
This diff is collapsed.
Click to expand it.
CodeLinaro
@codelinaro
mentioned in commit
a54956e8
·
9 months ago
mentioned in commit
a54956e8
mentioned in commit a54956e8a4263004be9c9368b8b4388c81d5c087
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment