diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2010-07-22 17:36:33 +0530 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2010-07-22 17:36:33 +0530 |
commit | 37b289b98200f0e054a97485b56a0b643536cad4 (patch) | |
tree | cbf691780e7a696a01e077e7d82c0b136dfb8c54 | |
parent | 9cce68df56282882de6de36a4dc8574e7e654310 (diff) | |
download | svn2git-37b289b98200f0e054a97485b56a0b643536cad4.tar svn2git-37b289b98200f0e054a97485b56a0b643536cad4.tar.gz svn2git-37b289b98200f0e054a97485b56a0b643536cad4.tar.bz2 svn2git-37b289b98200f0e054a97485b56a0b643536cad4.tar.xz svn2git-37b289b98200f0e054a97485b56a0b643536cad4.zip |
clear out a local that is re-used
-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; } |