From cf0aabe7dd0b158490dc14ddb77316c43eb578f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Mon, 2 Feb 2015 00:52:19 +0000 Subject: [PATCH] Bug fix for issue #179 --- lib/MySQL_HostGroups_Manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/MySQL_HostGroups_Manager.cpp b/lib/MySQL_HostGroups_Manager.cpp index 11091c37d..d4ad6cbf1 100644 --- a/lib/MySQL_HostGroups_Manager.cpp +++ b/lib/MySQL_HostGroups_Manager.cpp @@ -287,6 +287,8 @@ MyHGC * MySQL_HostGroups_Manager::MyHGC_lookup(unsigned int _hid) { myhgc=MyHGC_find(_hid); if (myhgc==NULL) { myhgc=MyHGC_create(_hid); + } else { + return myhgc; } assert(myhgc); MyHostGroups->add(myhgc);