aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2006-10-22 01:37:39 +0000
committerAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2006-10-22 01:37:39 +0000
commitce0835eab820940ee5513401c262a9a13b635726 (patch)
tree76946626da8d881500a0f1b1643f2364c5302b5f
parent5e91f5f0a024b7965adc89e7e47e84373046d40d (diff)
downloadpaludis-ce0835eab820940ee5513401c262a9a13b635726.tar.gz
paludis-ce0835eab820940ee5513401c262a9a13b635726.tar.xz
Don't use repo before it is initialised. Use r instead. This fixes a nasty segfault.
-rw-r--r--paludis/repositories/portage/portage_repository.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/repositories/portage/portage_repository.cc b/paludis/repositories/portage/portage_repository.cc
index e30b603..ab49256 100644
--- a/paludis/repositories/portage/portage_repository.cc
+++ b/paludis/repositories/portage/portage_repository.cc
@@ -185,10 +185,10 @@ namespace paludis
arch_flags(0),
has_mirrors(false),
profile_ptr(0),
- news_ptr(new PortageRepositoryNews(params.environment, repo, p)),
- sets_ptr(new PortageRepositorySets(params.environment, repo, p)),
+ news_ptr(new PortageRepositoryNews(params.environment, r, p)),
+ sets_ptr(new PortageRepositorySets(params.environment, r, p)),
entries_ptr(PortageRepositoryEntriesMaker::get_instance()->find_maker(
- params.entry_format)(params.environment, repo, p)),
+ params.entry_format)(params.environment, r, p)),
has_our_virtuals(false),
repo(r)
{