From 0da226163ff051f3fd8068081bce863bc5c21344 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Thu, 4 May 2017 12:22:34 +0200 Subject: [PATCH] Don't call mysql_error() after a failure of mysql_init() refs #3664 --- lib/db_ido_mysql/idomysqlconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db_ido_mysql/idomysqlconnection.cpp b/lib/db_ido_mysql/idomysqlconnection.cpp index de737e7cc..59bfef4ec 100644 --- a/lib/db_ido_mysql/idomysqlconnection.cpp +++ b/lib/db_ido_mysql/idomysqlconnection.cpp @@ -248,7 +248,7 @@ void IdoMysqlConnection::Reconnect(void) /* connection */ if (!mysql_init(&m_Connection)) { Log(LogCritical, "IdoMysqlConnection") - << "mysql_init() failed: \"" << mysql_error(&m_Connection) << "\""; + << "mysql_init() failed: out of memory"; BOOST_THROW_EXCEPTION(std::bad_alloc()); } -- 2.40.0