diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-05-12 15:10:17 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-05-15 22:23:10 +0200 |
commit | 71b45032421fe47fceabe419c63e79c44794428d (patch) | |
tree | c771e726ce4140b0798e7588034704801509e1ff /libmysql | |
parent | f9264280d68dcbca2f9312c7d8620b2bcc9d0694 (diff) | |
download | mariadb-git-71b45032421fe47fceabe419c63e79c44794428d.tar.gz |
MDEV-9998 Fix issues caught by Clang's -Wpointer-bool-conversion warning
remove useless checks
and a couple of others
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 3a08ea26b1d..3d787df804d 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -1405,7 +1405,7 @@ void set_stmt_errmsg(MYSQL_STMT *stmt, NET *net) DBUG_ASSERT(stmt != 0); stmt->last_errno= net->last_errno; - if (net->last_error && net->last_error[0]) + if (net->last_error[0]) strmov(stmt->last_error, net->last_error); strmov(stmt->sqlstate, net->sqlstate); |