Loading client/mysql_upgrade.c +8 −6 Original line number Diff line number Diff line Loading @@ -373,14 +373,17 @@ 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); Loading @@ -388,7 +391,6 @@ find_file(const char *name, const char *root, uint flags, char *result, size_t l 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) Loading Loading
client/mysql_upgrade.c +8 −6 Original line number Diff line number Diff line Loading @@ -373,14 +373,17 @@ 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); Loading @@ -388,7 +391,6 @@ find_file(const char *name, const char *root, uint flags, char *result, size_t l 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) Loading