diff options
author | Timothy Smith <timothy.smith@sun.com> | 2008-07-02 17:54:54 +0200 |
---|---|---|
committer | Timothy Smith <timothy.smith@sun.com> | 2008-07-02 17:54:54 +0200 |
commit | 52d1754015c1403370bcb472716ebfa82914378c (patch) | |
tree | ecd93761d73fe115c5a95ca92f985ca946bc90e3 /mysys/default.c | |
parent | ec73d940b18cb97c8de86adc09dc843a79f3e5ee (diff) | |
parent | 5647bce3668b46c5c74349520cefb2a791125e95 (diff) | |
download | mariadb-git-52d1754015c1403370bcb472716ebfa82914378c.tar.gz |
Up-merge syntax fix from 5.0-bugteam.
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 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 |