summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2005-09-02 20:07:08 +0200
committerunknown <joerg@mysql.com>2005-09-02 20:07:08 +0200
commit5d99ed0e881ba31e9608ded3ec6a8263d8696c2d (patch)
tree1978eaaf61a6667c80bff41f9c3452e7ef5a4fd8 /client
parentd026dd0e4532b51d49cd14cbcba4cb693155f0d0 (diff)
downloadmariadb-git-5d99ed0e881ba31e9608ded3ec6a8263d8696c2d.tar.gz
Compile error fix.
client/mysqltest.c: Have variable declarations before "DBUG_ENTER", the opposite order will fail to compile on some platforms.
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index 33702e9d1d2..92735c97fea 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -812,9 +812,9 @@ int var_set(const char *var_name, const char *var_name_end,
int open_file(const char *name)
{
+ char buff[FN_REFLEN];
DBUG_ENTER("open_file");
DBUG_PRINT("enter", ("name: %s", name));
- char buff[FN_REFLEN];
if (!test_if_hard_path(name))
{
strxmov(buff, opt_basedir, name, NullS);
@@ -843,9 +843,9 @@ int open_file(const char *name)
int check_eol_junk(const char *eol)
{
+ const char *p= eol;
DBUG_ENTER("check_eol_junk");
DBUG_PRINT("enter", ("eol: %s", eol));
- const char *p= eol;
/* Remove all spacing chars except new line */
while (*p && my_isspace(charset_info, *p) && (*p != '\n'))
p++;