Commit 31809edc authored by Georgi Kodinov's avatar Georgi Kodinov

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.
parent e5888b16
...@@ -4022,7 +4022,7 @@ default_service_handling(char **argv, ...@@ -4022,7 +4022,7 @@ default_service_handling(char **argv,
if (opt_delim= strchr(extra_opt, '=')) if (opt_delim= strchr(extra_opt, '='))
{ {
size_t length= ++opt_delim - extra_opt; size_t length= ++opt_delim - extra_opt;
strnmov(pos, extra_opt, length); pos= strnmov(pos, extra_opt, length);
} }
else else
opt_delim= extra_opt; opt_delim= extra_opt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment