From 37b289b98200f0e054a97485b56a0b643536cad4 Mon Sep 17 00:00:00 2001 From: Raja R Harinath Date: Thu, 22 Jul 2010 17:36:33 +0530 Subject: clear out a local that is re-used --- src/ruleparser.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/ruleparser.cpp b/src/ruleparser.cpp index 905115c..42334b7 100644 --- a/src/ruleparser.cpp +++ b/src/ruleparser.cpp @@ -83,6 +83,11 @@ void Rules::load() continue; } else if (line == "end repository") { m_repositories += repo; + { + // clear out 'repo' + Repository temp; + std::swap(repo, temp); + } state = ReadingNone; continue; } -- cgit v1.2.1