diff options
author | Timothy Smith <timothy.smith@sun.com> | 2008-07-02 16:37:29 +0200 |
---|---|---|
committer | Timothy Smith <timothy.smith@sun.com> | 2008-07-02 16:37:29 +0200 |
commit | 5647bce3668b46c5c74349520cefb2a791125e95 (patch) | |
tree | 2e802b95e8de3a07c18819afa3f0fa0529649bd6 /mysys/default.c | |
parent | 9393ae3dff60d256cd9e5aa73134e0e38168df44 (diff) | |
download | mariadb-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.c | 4 |
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 |