diff options
author | unknown <jimw@mysql.com> | 2005-05-02 08:11:32 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-05-02 08:11:32 -0700 |
commit | 875ed1e4554ae5e563aff3ab8cbeb5b7868df8c7 (patch) | |
tree | cf28002cd883e26c508374b5826ff8dbce87094b /mysys | |
parent | 465ba81afa88e1618facff61839533d034880b03 (diff) | |
parent | 0eb3528741247f42c49f7586e9b14e9ea96cf008 (diff) | |
download | mariadb-git-875ed1e4554ae5e563aff3ab8cbeb5b7868df8c7.tar.gz |
Merge mysql.com:/home/jimw/my/mysql-4.1-9136
into mysql.com:/home/jimw/my/mysql-4.1-clean
mysys/default.c:
Auto merged
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/default.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mysys/default.c b/mysys/default.c index bf23502389d..9510cfb3464 100644 --- a/mysys/default.c +++ b/mysys/default.c @@ -144,7 +144,7 @@ int load_defaults(const char *conf_file, const char **groups, int *argc, char ***argv) { DYNAMIC_ARRAY args; - const char **dirs, *forced_default_file; + const char **dirs, *forced_default_file, *forced_extra_defaults; TYPELIB group; my_bool found_print_defaults=0; uint args_used=0; @@ -174,13 +174,14 @@ int load_defaults(const char *conf_file, const char **groups, } get_defaults_files(*argc, *argv, - (char **)&forced_default_file, &defaults_extra_file); + (char **)&forced_default_file, + (char **)&forced_extra_defaults); if (forced_default_file) forced_default_file= strchr(forced_default_file,'=')+1; - if (defaults_extra_file) - defaults_extra_file= strchr(defaults_extra_file,'=')+1; + if (forced_extra_defaults) + defaults_extra_file= strchr(forced_extra_defaults,'=')+1; - args_used+= (forced_default_file ? 1 : 0) + (defaults_extra_file ? 1 : 0); + args_used+= (forced_default_file ? 1 : 0) + (forced_extra_defaults ? 1 : 0); group.count=0; group.name= "defaults"; |