summaryrefslogtreecommitdiff
path: root/mysys/default.c
diff options
context:
space:
mode:
authorTimothy Smith <timothy.smith@sun.com>2008-07-02 16:37:29 +0200
committerTimothy Smith <timothy.smith@sun.com>2008-07-02 16:37:29 +0200
commit5647bce3668b46c5c74349520cefb2a791125e95 (patch)
tree2e802b95e8de3a07c18819afa3f0fa0529649bd6 /mysys/default.c
parent9393ae3dff60d256cd9e5aa73134e0e38168df44 (diff)
downloadmariadb-git-5647bce3668b46c5c74349520cefb2a791125e95.tar.gz
Fix "C++ code in C file" syntax error in mysys/default.c
Diffstat (limited to 'mysys/default.c')
-rw-r--r--mysys/default.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mysys/default.c b/mysys/default.c
index eb7721acaed..bf32261129b 100644
--- a/mysys/default.c
+++ b/mysys/default.c
@@ -1015,10 +1015,12 @@ static uint my_get_system_windows_directory(char *buffer, uint size)
static const char *my_get_module_parent(char *buf, size_t size)
{
+ char *last= NULL;
+ char *end;
if (!GetModuleFileName(NULL, buf, size))
return NULL;
+ end= strend(buf);
- char *last= NULL, *end= strend(buf);
/*
Look for the second-to-last \ in the filename, but hang on
to a pointer after the last \ in case we're in the root of