]> granicus.if.org Git - icinga2/commitdiff
Don't call mysql_error() after a failure of mysql_init() 5225/head
authorAlexander A. Klimov <alexander.klimov@icinga.com>
Thu, 4 May 2017 10:22:34 +0000 (12:22 +0200)
committerAlexander A. Klimov <alexander.klimov@icinga.com>
Thu, 4 May 2017 10:22:34 +0000 (12:22 +0200)
refs #3664

lib/db_ido_mysql/idomysqlconnection.cpp

index de737e7cc72029761d4a33a66ae07b9544af4adc..59bfef4ec284665b85503b112250753efb7da178 100644 (file)
@@ -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());
        }