summaryrefslogtreecommitdiff
path: root/mysys/my_init.c
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-12-22 14:16:21 +0200
committerMonty <monty@mariadb.org>2017-12-22 14:56:58 +0200
commit139e8afc2c165a08f4fa13da70b0aad3cf7b9df5 (patch)
treecf3eb4a3d2c54fc09d2e5c144d8eb7633ff6bd9a /mysys/my_init.c
parent1464f4808c08155fd10ba09eae2bb2c3f177482c (diff)
downloadmariadb-git-139e8afc2c165a08f4fa13da70b0aad3cf7b9df5.tar.gz
Re-enable 'S' for --debug (sf_sanity checking for each call)
- Fixed also a wrong comment and a wrong argument to printf
Diffstat (limited to 'mysys/my_init.c')
-rw-r--r--mysys/my_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysys/my_init.c b/mysys/my_init.c
index 7db0a58d471..9bd1185a3bf 100644
--- a/mysys/my_init.c
+++ b/mysys/my_init.c
@@ -105,6 +105,10 @@ my_bool my_init(void)
if (my_thread_global_init())
return 1;
+#if defined(SAFEMALLOC) && !defined(DBUG_OFF)
+ dbug_sanity= sf_sanity;
+#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);