summaryrefslogtreecommitdiff
path: root/client/mysqlshow.c
diff options
context:
space:
mode:
authorunknown <vva@eagle.mysql.r18.ru>2004-08-23 20:55:09 +0500
committerunknown <vva@eagle.mysql.r18.ru>2004-08-23 20:55:09 +0500
commitaab7b774d58098f1397dd499c898d1221b3b50fc (patch)
tree39ffd43c0467ce93ae54e91244988e1c62054546 /client/mysqlshow.c
parent83e3d3f9a3ab6888292b8bcb15e0f77f00249289 (diff)
downloadmariadb-git-aab7b774d58098f1397dd499c898d1221b3b50fc.tar.gz
fixed a Bug #4998 "--protocol doesn't reject bad values"
Diffstat (limited to 'client/mysqlshow.c')
-rw-r--r--client/mysqlshow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqlshow.c b/client/mysqlshow.c
index d9e2a1fa92a..285b229550f 100644
--- a/client/mysqlshow.c
+++ b/client/mysqlshow.c
@@ -268,7 +268,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
break;
case OPT_MYSQL_PROTOCOL:
{
- if ((opt_protocol = find_type(argument, &sql_protocol_typelib,0)) == ~(ulong) 0)
+ if (!(opt_protocol= find_type(argument, &sql_protocol_typelib,0)))
{
fprintf(stderr, "Unknown option to protocol: %s\n", argument);
exit(1);