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:
@ -323,9 +323,9 @@ container_cmp (MuContainer *a, MuContainer *b, MuMsgFieldId mfid)
|
|||||||
if (a == b)
|
if (a == b)
|
||||||
return 0;
|
return 0;
|
||||||
else if (!a->msg)
|
else if (!a->msg)
|
||||||
return 1;
|
|
||||||
else if (!b->msg)
|
|
||||||
return -1;
|
return -1;
|
||||||
|
else if (!b->msg)
|
||||||
|
return 1;
|
||||||
|
|
||||||
return mu_msg_cmp (a->msg, b->msg, mfid);
|
return mu_msg_cmp (a->msg, b->msg, mfid);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user