summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2016-04-23 12:15:18 +0400
committerSergey Vojtovich <svoj@mariadb.org>2016-04-23 12:15:18 +0400
commit0ea4c73dae689fb80e2c1c1cc347a917534edfae (patch)
tree4421f28c0ef0419fe2c27b1b4207e6839c542b3b /client
parent618e300bce133cd4b4379b9f456d65144ae4c62b (diff)
downloadmariadb-git-0ea4c73dae689fb80e2c1c1cc347a917534edfae.tar.gz
Fixed compilation failure due to unused var.
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 43c09cafe9e..9d255b55430 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -4898,11 +4898,11 @@ put_info(const char *str,INFO_TYPE info_type, uint error, const char *sqlstate)
{
if (!inited)
{
- int errret;
- inited=1;
#ifdef HAVE_SETUPTERM
+ int errret;
have_curses= setupterm((char *)0, 1, &errret) != ERR;
#endif
+ inited=1;
}
if (info_type == INFO_ERROR)
{