summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorTimothy Smith <timothy.smith@sun.com>2008-07-02 17:54:54 +0200
committerTimothy Smith <timothy.smith@sun.com>2008-07-02 17:54:54 +0200
commitab9c6beccd6288d3d9aa8bd8cd33ca89a8896d9d (patch)
treeecd93761d73fe115c5a95ca92f985ca946bc90e3 /mysys
parentb2c852d8fc4273fe7de085399510a6d602ec00d0 (diff)
parentbbdcf6ca2177719424b933d0850a1db7d03a39c1 (diff)
downloadmariadb-git-ab9c6beccd6288d3d9aa8bd8cd33ca89a8896d9d.tar.gz
Up-merge syntax fix from 5.0-bugteam.
Diffstat (limited to 'mysys')
-rw-r--r--mysys/default.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mysys/default.c b/mysys/default.c
index e0ab3bd1e80..7803b81c31d 100644
--- a/mysys/default.c
+++ b/mysys/default.c
@@ -1024,10 +1024,12 @@ static size_t my_get_system_windows_directory(char *buffer, size_t 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