summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-09-06 22:48:42 +0200
committerunknown <serg@serg.mylan>2004-09-06 22:48:42 +0200
commit21642fb5d733df8c2b699eea55b0151439e0eca6 (patch)
tree1a4f4820aac030c406e6240c615e5518dc80fffe /client
parent982a78829af9bc579fc884e641f5ec10cb1f478e (diff)
downloadmariadb-git-21642fb5d733df8c2b699eea55b0151439e0eca6.tar.gz
Bug #5413 mysqlcheck segfaults when user has to few permissions
Diffstat (limited to 'client')
-rw-r--r--client/mysqlcheck.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c
index 1c5638f3c52..8764611adf4 100644
--- a/client/mysqlcheck.c
+++ b/client/mysqlcheck.c
@@ -413,18 +413,18 @@ static int process_all_tables_in_db(char *database)
LINT_INIT(res);
if (use_db(database))
return 1;
- if (!(mysql_query(sock, "SHOW TABLES") ||
- (res = mysql_store_result(sock))))
+ if (mysql_query(sock, "SHOW TABLES") ||
+ !((res= mysql_store_result(sock))))
return 1;
if (opt_all_in_1)
{
- /*
+ /*
We need table list in form `a`, `b`, `c`
that's why we need 4 more chars added to to each table name
space is for more readable output in logs and in case of error
*/
-
+
char *tables, *end;
uint tot_length = 0;