diff options
author | unknown <petr@mysql.com> | 2005-03-29 16:15:22 +0400 |
---|---|---|
committer | unknown <petr@mysql.com> | 2005-03-29 16:15:22 +0400 |
commit | c0477b0298e309dc35c4cc21032765db1fddd1ec (patch) | |
tree | 2ddf38abdf950dbd19f9db598ba8cc2aed9c9f4e /mysys/default.c | |
parent | 21c4365670d9491d1ae38f42ed872d502dbdcb33 (diff) | |
download | mariadb-git-c0477b0298e309dc35c4cc21032765db1fddd1ec.tar.gz |
more merge fixes
Diffstat (limited to 'mysys/default.c')
-rw-r--r-- | mysys/default.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/mysys/default.c b/mysys/default.c index cdfd4b14c3c..ddff4e26be5 100644 --- a/mysys/default.c +++ b/mysys/default.c @@ -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, group, + search_default_file_with_ext(opt_handler, handler_ctx, "", "", tmp, 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); } |