aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2010-06-28 20:23:36 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2010-06-28 20:23:36 +0100
commit9b8a7d6f835b4cff946302a2265a9208e940894e (patch)
treeebd6a715c6f6c24975ed37e05ed1f3214f81a72c
parent5b7b5149b750b53d35516c57725fec1fde2236e3 (diff)
downloadpaludis-9b8a7d6f835b4cff946302a2265a9208e940894e.tar.gz
paludis-9b8a7d6f835b4cff946302a2265a9208e940894e.tar.xz
Don't pass in a null sequence pointer
-rw-r--r--src/clients/cave/resolve_common.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/clients/cave/resolve_common.cc b/src/clients/cave/resolve_common.cc
index 62f6319..cccae03 100644
--- a/src/clients/cave/resolve_common.cc
+++ b/src/clients/cave/resolve_common.cc
@@ -1854,8 +1854,10 @@ paludis::cave::resolve_common(
try
{
if (purge)
+ {
resolver->purge();
- else
+ targets_cleaned_up.reset(new Sequence<std::string>);
+ } else
targets_cleaned_up = add_resolver_targets(env, resolver, resolution_options, targets_if_not_purge, is_set);
resolver->resolve();
break;