* mu-index: don't require a non-NULL callback for mu_index_cleanup
This commit is contained in:
@ -141,7 +141,7 @@ insert_or_update_maybe (const char* fullpath, const char* mdir,
|
|||||||
goto errexit;
|
goto errexit;
|
||||||
|
|
||||||
/* we got a valid id; scan the message contents as well */
|
/* we got a valid id; scan the message contents as well */
|
||||||
if (G_UNLIKELY((!mu_store_add_msg (data->_store, msg, TRUE, &err))))
|
if (G_UNLIKELY((!mu_store_add_msg (data->_store, msg, &err))))
|
||||||
goto errexit;
|
goto errexit;
|
||||||
|
|
||||||
mu_msg_unref (msg);
|
mu_msg_unref (msg);
|
||||||
@ -435,7 +435,6 @@ mu_index_cleanup (MuIndex *index, MuIndexStats *stats,
|
|||||||
CleanupData cudata;
|
CleanupData cudata;
|
||||||
|
|
||||||
g_return_val_if_fail (index, MU_ERROR);
|
g_return_val_if_fail (index, MU_ERROR);
|
||||||
g_return_val_if_fail (cb, MU_ERROR);
|
|
||||||
|
|
||||||
cudata._store = index->_store;
|
cudata._store = index->_store;
|
||||||
cudata._stats = stats;
|
cudata._stats = stats;
|
||||||
|
|||||||
Reference in New Issue
Block a user