From f724f4a57d242171b68f327c572dbd5d61d70d58 Mon Sep 17 00:00:00 2001 From: Jakub Sitnicki Date: Tue, 1 Jul 2014 07:22:57 +0200 Subject: [PATCH] mu: Consider an empty container to be less than anything else Reasoning being that, arguably, it is the least surprising thing to do. --- lib/mu-container.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mu-container.c b/lib/mu-container.c index fbac6bb2..7011fec5 100644 --- a/lib/mu-container.c +++ b/lib/mu-container.c @@ -323,9 +323,9 @@ container_cmp (MuContainer *a, MuContainer *b, MuMsgFieldId mfid) if (a == b) return 0; else if (!a->msg) - return 1; - else if (!b->msg) return -1; + else if (!b->msg) + return 1; return mu_msg_cmp (a->msg, b->msg, mfid); }