Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
072818ea
Commit
072818ea
authored
Aug 08, 2004
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysqld.cc:
get_options() did an exit(0) after reporting "Too many arguments"
parent
e1e1c39b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
sql/mysqld.cc
sql/mysqld.cc
+3
-2
No files found.
sql/mysqld.cc
View file @
072818ea
...
...
@@ -6078,12 +6078,13 @@ static void get_options(int argc,char **argv)
my_getopt_register_get_addr
(
mysql_getopt_value
);
strmake
(
def_ft_boolean_syntax
,
ft_boolean_syntax
,
sizeof
(
ft_boolean_syntax
)
-
1
);
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
)))
if
((
ho_error
=
handle_options
(
&
argc
,
&
argv
,
my_long_options
,
get_one_option
))
!=
0
)
exit
(
ho_error
);
if
(
argc
>
0
)
{
fprintf
(
stderr
,
"%s: Too many arguments (first extra is '%s').
\n
Use --help to get a list of available options
\n
"
,
my_progname
,
*
argv
);
exit
(
ho_error
);
/* FIXME add EXIT_TOO_MANY_ARGUMENTS to "mysys_err.h" and return that code? */
exit
(
1
);
}
if
(
opt_help
)
...
...
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