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
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
nexedi
MariaDB
Commits
7640c63d
Commit
7640c63d
authored
Feb 19, 2005
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for a bug with my_print_defaults with --defaults-extra-file= option
parent
0ad02a92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
extra/my_print_defaults.c
extra/my_print_defaults.c
+13
-5
No files found.
extra/my_print_defaults.c
View file @
7640c63d
...
...
@@ -120,25 +120,33 @@ int main(int argc, char **argv)
int
count
,
error
;
char
**
load_default_groups
,
*
tmp_arguments
[
2
],
**
argument
,
**
arguments
;
char
*
defaults
,
*
extra_defaults
;
MY_INIT
(
argv
[
0
]);
get_defaults_files
(
argc
,
argv
,
&
defaults
,
&
extra_defaults
);
/*
** Check out the args
*/
if
(
get_options
(
&
argc
,
&
argv
))
exit
(
1
);
if
(
!
(
load_default_groups
=
(
char
**
)
my_malloc
((
argc
+
2
)
*
sizeof
(
char
*
),
MYF
(
MY_WME
))))
exit
(
1
);
if
(
get_options
(
&
argc
,
&
argv
))
exit
(
1
);
for
(
count
=
0
;
*
argv
;
argv
++
,
count
++
)
load_default_groups
[
count
]
=
*
argv
;
load_default_groups
[
count
]
=
0
;
count
=
1
;
count
=
0
;
arguments
=
tmp_arguments
;
arguments
[
0
]
=
my_progname
;
arguments
[
1
]
=
0
;
arguments
[
count
++
]
=
my_progname
;
if
(
extra_defaults
)
arguments
[
count
++
]
=
extra_defaults
;
if
(
defaults
)
arguments
[
count
++
]
=
defaults
;
arguments
[
count
]
=
0
;
if
((
error
=
load_defaults
(
config_file
,
(
const
char
**
)
load_default_groups
,
&
count
,
&
arguments
)))
{
...
...
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