summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2009-09-19 14:21:29 -0700
committerIgor Babaev <igor@askmonty.org>2009-09-19 14:21:29 -0700
commitcbb8c3f0b0fa5aa7bc63054d48b4a7b6260509e5 (patch)
tree73cbe4461ccbfac4c76985b7ddca476e62fa6584 /storage
parent6811136cc3e39c7b478178a845ba4d3a89efec1d (diff)
downloadmariadb-git-cbb8c3f0b0fa5aa7bc63054d48b4a7b6260509e5.tar.gz
Fixed bug #47455 - a failure with main.myisam_crash_before_flush_keys.test
on Windows.
Diffstat (limited to 'storage')
-rw-r--r--storage/myisam/myisamchk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/storage/myisam/myisamchk.c b/storage/myisam/myisamchk.c
index 446c3aa2464..6b3ea48e040 100644
--- a/storage/myisam/myisamchk.c
+++ b/storage/myisam/myisamchk.c
@@ -83,7 +83,9 @@ HA_CHECK check_param;
int main(int argc, char **argv)
{
int error;
+ uchar rc;
MY_INIT(argv[0]);
+ my_progname_short= "myisamchk";
myisamchk_init(&check_param);
check_param.opt_lock_memory=1; /* Lock memory if possible */
@@ -132,7 +134,8 @@ int main(int argc, char **argv)
free_tmpdir(&myisamchk_tmpdir);
ft_free_stopwords();
my_end(check_param.testflag & T_INFO ? MY_CHECK_ERROR | MY_GIVE_INFO : MY_CHECK_ERROR);
- exit(error);
+ rc= (uchar) error;
+ exit(rc);
#ifndef _lint
return 0; /* No compiler warning */
#endif