summaryrefslogtreecommitdiff
path: root/mysql-test/lib/My/SafeProcess
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-02-07 01:40:16 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2018-02-07 20:22:30 +0000
commit53476abce829f14b9d591a9bf160bc07cffaa768 (patch)
tree60288c4d65ece9f57a50aa017440659e1b902273 /mysql-test/lib/My/SafeProcess
parent8fe04a3df37d65254142c6d1297eda32c1013f7f (diff)
downloadmariadb-git-53476abce829f14b9d591a9bf160bc07cffaa768.tar.gz
Windows, compiling : use /permissive- switch to improve conformance
fix a couple "initialization skipped by goto" and other new errors.
Diffstat (limited to 'mysql-test/lib/My/SafeProcess')
-rw-r--r--mysql-test/lib/My/SafeProcess/safe_kill_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/lib/My/SafeProcess/safe_kill_win.cc b/mysql-test/lib/My/SafeProcess/safe_kill_win.cc
index 6ca38ceee81..8cb805b1bbc 100644
--- a/mysql-test/lib/My/SafeProcess/safe_kill_win.cc
+++ b/mysql-test/lib/My/SafeProcess/safe_kill_win.cc
@@ -72,6 +72,7 @@ void dump_single_process(DWORD pid)
char path[MAX_PATH];
char working_dir[MAX_PATH];
char tmpname[MAX_PATH];
+ char *filename= 0;
process= OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, pid);
if (!process)
@@ -88,7 +89,7 @@ void dump_single_process(DWORD pid)
goto exit;
}
- char *filename= strrchr(path, '\\');
+ filename= strrchr(path, '\\');
if (filename)
{
filename++;