diff options
author | unknown <vva@eagle.mysql.r18.ru> | 2004-08-23 20:55:09 +0500 |
---|---|---|
committer | unknown <vva@eagle.mysql.r18.ru> | 2004-08-23 20:55:09 +0500 |
commit | aab7b774d58098f1397dd499c898d1221b3b50fc (patch) | |
tree | 39ffd43c0467ce93ae54e91244988e1c62054546 /client/mysqlshow.c | |
parent | 83e3d3f9a3ab6888292b8bcb15e0f77f00249289 (diff) | |
download | mariadb-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.c | 2 |
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); |