* handle the no-matches-found case correctly

This commit is contained in:
djcb
2012-12-25 20:33:02 +02:00
parent 06648060da
commit 27a80dcb67
2 changed files with 12 additions and 5 deletions

View File

@ -71,6 +71,8 @@ mu_threader_calculate (MuMsgIter *iter, size_t matchnum,
/* step 1 */
id_table = create_containers (iter);
if (matchnum == 0)
return id_table; /* just return an empty table */
/* step 2 -- the root_set is the list of children without parent */
root_set = find_root_set (id_table);