summaryrefslogtreecommitdiff
path: root/mysys/my_init.c
diff options
context:
space:
mode:
authorDaniel Fischer <df@sun.com>2010-06-18 17:04:15 +0200
committerDaniel Fischer <df@sun.com>2010-06-18 17:04:15 +0200
commit9891642e773dd2fb1b8032e603b23a4c0f804eb0 (patch)
tree129482b631bc451c9ff9b99ac55692b6bec2563d /mysys/my_init.c
parent527446e0a256e6a111724b6f8346640e3cc5e947 (diff)
parent89205a3bf6bba245e312078b23168ff5f8560759 (diff)
downloadmariadb-git-9891642e773dd2fb1b8032e603b23a4c0f804eb0.tar.gz
merge
Diffstat (limited to 'mysys/my_init.c')
-rw-r--r--mysys/my_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mysys/my_init.c b/mysys/my_init.c
index f27f3f7b3e8..5bda2cb03ac 100644
--- a/mysys/my_init.c
+++ b/mysys/my_init.c
@@ -93,10 +93,6 @@ my_bool my_basic_init(void)
my_umask_dir= (int) (atoi_octal(str) | 0700);
#endif
- /* $HOME is needed early to parse configuration files located in ~/ */
- if ((home_dir= getenv("HOME")) != 0)
- home_dir= intern_filename(home_dir_buff, home_dir);
-
init_glob_errs();
instrumented_stdin.m_file= stdin;
@@ -122,6 +118,10 @@ my_bool my_basic_init(void)
return 1;
#endif
+ /* $HOME is needed early to parse configuration files located in ~/ */
+ if ((home_dir= getenv("HOME")) != 0)
+ home_dir= intern_filename(home_dir_buff, home_dir);
+
return 0;
}