aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-03 15:15:38 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-11-03 15:15:38 +0000
commit612422e1180dfe1b9454887640676a3819413de3 (patch)
treea8bda21f5cd689050d7933c7658f1f6a8b5c1771
parent56a6275a62b34a697cf92ebc3bc5a4286c946865 (diff)
downloadpaludis-612422e1180dfe1b9454887640676a3819413de3.tar.gz
paludis-612422e1180dfe1b9454887640676a3819413de3.tar.xz
Don't barf if values don't exist
-rw-r--r--src/clients/qualudis/qualudis.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/clients/qualudis/qualudis.cc b/src/clients/qualudis/qualudis.cc
index 77ff5f2..7ea5909 100644
--- a/src/clients/qualudis/qualudis.cc
+++ b/src/clients/qualudis/qualudis.cc
@@ -137,8 +137,11 @@ namespace
void visit(const MetadataRepositoryMaskInfoKey & k)
{
- stream << k.raw_name() << ": " << k.value()->mask_file << ": "
- << join(k.value()->comment->begin(), k.value()->comment->end(), " ");
+ if (k.value())
+ stream << k.raw_name() << ": " << k.value()->mask_file << ": "
+ << join(k.value()->comment->begin(), k.value()->comment->end(), " ");
+ else
+ stream << k.raw_name();
}
void visit(const MetadataContentsKey &)