mu: Consider an empty container to be less than anything else

Reasoning being that, arguably, it is the least surprising thing to do.
This commit is contained in:
Jakub Sitnicki 2014-07-01 07:22:57 +02:00
parent dc3be515af
commit f724f4a57d
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}