summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/metastore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/metastore.c b/src/metastore.c
index 579f892..e95a0d5 100644
--- a/src/metastore.c
+++ b/src/metastore.c
@@ -91,7 +91,7 @@ insert_entry_pdlist(struct metaentry **list, struct metaentry *entry)
static void
compare_print(struct metaentry *real, struct metaentry *stored, int cmp)
{
- if (!real && !stored) {
+ if (!real && (!stored || (cmp == DIFF_NONE || cmp & DIFF_ADDED))) {
msg(MSG_ERROR, "%s called with incorrect arguments\n", __func__);
return;
}