Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-2-2
Commits
2a8c2b23
Commit
2a8c2b23
authored
Mar 10, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't check return value of getopt_long against EOF, manpage says it returns -1 not EOF.
parent
93b1a2be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/misc/configuration.c
src/misc/configuration.c
+2
-1
No files found.
src/misc/configuration.c
View file @
2a8c2b23
...
...
@@ -1486,7 +1486,7 @@ int __config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[],
opterr
=
0
;
optind
=
1
;
while
(
(
i_cmd
=
getopt_long
(
*
pi_argc
,
ppsz_argv
,
psz_shortopts
,
p_longopts
,
&
i_index
)
)
!=
EOF
)
p_longopts
,
&
i_index
)
)
!=
-
1
)
{
/* A long option has been recognized */
if
(
i_cmd
==
0
)
...
...
@@ -1535,6 +1535,7 @@ int __config_LoadCmdLine( vlc_object_t *p_this, int *pi_argc, char *ppsz_argv[],
"You should use --%s instead.
\n
"
,
p_conf
->
psz_name
,
p_conf
->
psz_current
);
}
//*psz_name = *(p_conf->psz_current);
psz_name
=
p_conf
->
psz_current
;
p_conf
=
config_FindConfig
(
p_this
,
psz_name
);
}
...
...
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