summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-11-23 11:38:44 +0100
committerunknown <msvensson@neptunus.(none)>2006-11-23 11:38:44 +0100
commit6351280267ed0f911d099493520e027b811323c0 (patch)
tree9cd51736b9f2ee50d9f65e920b073fe8a9feb24f /client
parentc9cc82f23567e32487c2ae81d85ccb54e7be558e (diff)
downloadmariadb-git-6351280267ed0f911d099493520e027b811323c0.tar.gz
Build fixes for NetWare
Diffstat (limited to 'client')
-rw-r--r--client/mysql_upgrade.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/client/mysql_upgrade.c b/client/mysql_upgrade.c
index e2b5931c2eb..520d87b5ed7 100644
--- a/client/mysql_upgrade.c
+++ b/client/mysql_upgrade.c
@@ -373,22 +373,24 @@ static int comp_names(struct fileinfo *a, struct fileinfo *b)
}
-static int
-find_file(const char *name, const char *root, uint flags, char *result, size_t len, ...)
+static int find_file(const char *name, const char *root,
+ uint flags, char *result, size_t len, ...)
{
- int ret;
+ int ret= 1;
va_list va;
- FILEINFO key= { (char*)name, NULL };
const char *subdir;
char *cp;
-
+ FILEINFO key;
+
+ /* Init key with name of the file to look for */
+ key.name= (char*)name;
+
DBUG_ASSERT(root != NULL);
cp= strmake(result, root, len);
if (cp[-1] != FN_LIBCHAR)
*cp++= FN_LIBCHAR;
- ret= 1;
va_start(va, len);
subdir= (!(flags & MY_SEARCH_SELF)) ? va_arg(va, char *) : "";
while (subdir)