diff options
Diffstat (limited to 'src/ruleparser.cpp')
-rw-r--r-- | src/ruleparser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |