summaryrefslogtreecommitdiff
path: root/client/mysqlimport.c
diff options
context:
space:
mode:
authorunknown <vva@eagle.mysql.r18.ru>2004-08-24 20:13:31 +0500
committerunknown <vva@eagle.mysql.r18.ru>2004-08-24 20:13:31 +0500
commit3c5e4bd9f2962e77b7e7361b9d324691b5720182 (patch)
tree82f89fe2bd46076041d452986fa0f42c286e8211 /client/mysqlimport.c
parent78088d91649df55c14c5bdba4afe4bb7b133e350 (diff)
downloadmariadb-git-3c5e4bd9f2962e77b7e7361b9d324691b5720182.tar.gz
more accurate processing of find_type result
(Bug #4998 --protocol doesn't reject bad values) client/mysql.cc: more accurate processing of find_type result client/mysqladmin.c: more accurate processing of find_type result client/mysqlbinlog.cc: more accurate processing of find_type result client/mysqlcheck.c: more accurate processing of find_type result client/mysqldump.c: more accurate processing of find_type result client/mysqlimport.c: more accurate processing of find_type result client/mysqlshow.c: more accurate processing of find_type result sql-common/client.c: more accurate processing of find_type result
Diffstat (limited to 'client/mysqlimport.c')
-rw-r--r--client/mysqlimport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c
index 3db13519a46..86f373d75fe 100644
--- a/client/mysqlimport.c
+++ b/client/mysqlimport.c
@@ -203,7 +203,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
#endif
case OPT_MYSQL_PROTOCOL:
{
- if (!(opt_protocol= find_type(argument, &sql_protocol_typelib,0)))
+ if ((opt_protocol= find_type(argument, &sql_protocol_typelib,0)) <= 0)
{
fprintf(stderr, "Unknown option to protocol: %s\n", argument);
exit(1);