aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@hurrynot.org>2010-07-22 17:36:33 +0530
committerRaja R Harinath <harinath@hurrynot.org>2010-07-22 17:36:33 +0530
commit37b289b98200f0e054a97485b56a0b643536cad4 (patch)
treecbf691780e7a696a01e077e7d82c0b136dfb8c54
parent9cce68df56282882de6de36a4dc8574e7e654310 (diff)
downloadsvn2git-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.cpp5
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;
}