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 | 78088d91649df55c14c5bdba4afe4bb7b133e350 (patch) | |
tree | 39ffd43c0467ce93ae54e91244988e1c62054546 /client/mysqlimport.c | |
parent | 412d05510bb372bf264a091a585b9c0856896b6e (diff) | |
download | mariadb-git-78088d91649df55c14c5bdba4afe4bb7b133e350.tar.gz |
fixed a Bug #4998 "--protocol doesn't reject bad values"
Diffstat (limited to 'client/mysqlimport.c')
-rw-r--r-- | client/mysqlimport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysqlimport.c b/client/mysqlimport.c index ccf7fd9880d..3db13519a46 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)) == ~(ulong) 0) + if (!(opt_protocol= find_type(argument, &sql_protocol_typelib,0))) { fprintf(stderr, "Unknown option to protocol: %s\n", argument); exit(1); |