aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Stephen P. Bennett <spb@exherbo.org> 2006-04-23 02:28:07 +0000
committerAvatar Stephen P. Bennett <spb@exherbo.org> 2006-04-23 02:28:07 +0000
commit9864796f758d760088a214ead4fc717389e47b9f (patch)
treeb1665230f9bd3df82d622deb7f979855a9b39cd7
parent0975d014c1afcc3b5217fe76db2f6205ee8e1be3 (diff)
downloadpaludis-9864796f758d760088a214ead4fc717389e47b9f.tar.gz
paludis-9864796f758d760088a214ead4fc717389e47b9f.tar.xz
Remember to check for null pointers this time. It is often helpful.
-rw-r--r--paludis/portage_repository.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/paludis/portage_repository.cc b/paludis/portage_repository.cc
index 7d8144b..5d7790a 100644
--- a/paludis/portage_repository.cc
+++ b/paludis/portage_repository.cc
@@ -940,6 +940,9 @@ PortageRepository::do_query_use_mask(const UseFlagName & u, const PackageDatabas
if (_imp->use_mask.end() != _imp->use_mask.find(u))
return true;
+ if (0 == e)
+ return false;
+
PackageUseMaskMap::iterator it = _imp->package_use_mask.find(e->get<pde_name>());
if (_imp->package_use_mask.end() == it)
return false;