mirror of https://github.com/djcb/mu.git
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:
parent
dc3be515af
commit
f724f4a57d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue