Fix uninitialized variable causing false returns

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
Lon Hohberger 2009-11-05 14:07:33 -05:00
parent 8dffcbd726
commit decab46dda

View File

@ -65,7 +65,7 @@ do_lq_request(const char *vm_name, const char *action)
SessionManager::NameVector names; SessionManager::NameVector names;
Object::Vector domains; Object::Vector domains;
Object *domain = NULL; Object *domain = NULL;
unsigned i, tries, found; unsigned i, tries = 0, found = 0;
cs.host = "127.0.0.1"; cs.host = "127.0.0.1";
cs.port = 5672; cs.port = 5672;