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
c0477b02
Commit
c0477b02
authored
Mar 29, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more merge fixes
parent
21c43656
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
mysys/default.c
mysys/default.c
+4
-8
No files found.
mysys/default.c
View file @
c0477b02
...
...
@@ -124,7 +124,7 @@ int my_search_option_files(const char *conf_file, int *argc, char ***argv,
if
(
forced_default_file
)
{
if
((
error
=
search_default_file_with_ext
(
func
,
func_ctx
,
""
,
""
,
forced_default_file
))
<
0
)
forced_default_file
,
0
))
<
0
)
goto
err
;
if
(
error
>
0
)
{
...
...
@@ -439,7 +439,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
int
recursion_level
)
{
char
name
[
FN_REFLEN
+
10
],
buff
[
4096
],
curr_gr
[
4096
],
*
ptr
,
*
end
,
**
tmp_ext
;
char
*
value
,
option
[
4096
];
char
*
value
,
option
[
4096
]
,
tmp
[
FN_REFLEN
]
;
static
const
char
includedir_keyword
[]
=
"includedir"
;
static
const
char
include_keyword
[]
=
"include"
;
const
int
max_recursion_level
=
10
;
...
...
@@ -548,14 +548,10 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
if
(
*
tmp_ext
)
{
if
(
!
(
tmp
=
alloc_root
(
alloc
,
2
+
strlen
(
search_file
->
name
)
+
strlen
(
ptr
))))
goto
err
;
fn_format
(
tmp
,
search_file
->
name
,
ptr
,
""
,
MY_UNPACK_FILENAME
|
MY_SAFE_PATH
);
search_default_file_with_ext
(
args
,
alloc
,
""
,
""
,
tmp
,
grou
p
,
search_default_file_with_ext
(
opt_handler
,
handler_ctx
,
""
,
""
,
tm
p
,
recursion_level
+
1
);
}
}
...
...
@@ -585,7 +581,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
goto
err
;
}
search_default_file_with_ext
(
args
,
alloc
,
""
,
""
,
ptr
,
group
,
search_default_file_with_ext
(
opt_handler
,
handler_ctx
,
""
,
""
,
ptr
,
recursion_level
+
1
);
}
...
...
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