summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-09-17 14:25:07 +0300
committerGeorgi Kodinov <joro@sun.com>2009-09-17 14:25:07 +0300
commit6e6974a553de6f88dc0a5c639fb28c640ac9d834 (patch)
tree2b48e8a82b595b78d8335eba0ec59d75506edbc1
parent38b6d49e826e1fde46c445d790eb7609b14c4220 (diff)
downloadmariadb-git-6e6974a553de6f88dc0a5c639fb28c640ac9d834.tar.gz
Bug #46917: mysqd-nt installs wrong
When parsing the service installation parameter in default_service_handling() make sure the value of the optional parameter doesn't overwrite it's name.
-rw-r--r--sql/mysqld.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index afbbf753813..ce1d562d0ca 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -4022,7 +4022,7 @@ default_service_handling(char **argv,
if (opt_delim= strchr(extra_opt, '='))
{
size_t length= ++opt_delim - extra_opt;
- strnmov(pos, extra_opt, length);
+ pos= strnmov(pos, extra_opt, length);
}
else
opt_delim= extra_opt;