From 3b13d7090f36d8ac52f5341a8c7696db680a5445 Mon Sep 17 00:00:00 2001 From: "tomas@poseidon.ndb.mysql.com" <> Date: Sat, 25 Sep 2004 16:36:54 +0000 Subject: [PATCH] corrected small :) mistake --- ndb/src/ndbapi/ndb_cluster_connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ndb/src/ndbapi/ndb_cluster_connection.cpp b/ndb/src/ndbapi/ndb_cluster_connection.cpp index 174d2c314af..688445125f3 100644 --- a/ndb/src/ndbapi/ndb_cluster_connection.cpp +++ b/ndb/src/ndbapi/ndb_cluster_connection.cpp @@ -106,7 +106,7 @@ int Ndb_cluster_connection::connect(int reconnect) { if (m_local_config == 0) { m_local_config= new LocalConfig(); - if (m_local_config->init(m_connect_string,0)) { + if (!m_local_config->init(m_connect_string,0)) { ndbout << "Configuration error: Unable to retrieve local config" << endl; m_local_config->printError(); m_local_config->printUsage(); @@ -179,7 +179,7 @@ Ndb_cluster_connection::~Ndb_cluster_connection() my_free(m_connect_string,MYF(MY_ALLOW_ZERO_PTR)); if (m_config_retriever) delete m_config_retriever; - if (m_local_config == 0) + if (m_local_config) delete m_local_config; DBUG_VOID_RETURN; }