* changed the function param sanity checking from assertions
to the g_return*_if_fail() family of functions, so we can
stumble along instead of barfing in front of the user
GList *keys = NULL;
GList *tmp_keys = NULL;
- g_assert (capability != NULL);
+ g_return_val_if_fail (capability != NULL, 0);
g_mutex_lock (&capa_htable_lock);
/* shift-left biggest-so-far, sanity-check */
check_id = (capa_id << 1);
- g_assert (check_id <= (guint64) G_MAXUINT32);
+ g_return_val_if_fail (check_id <= (guint64) G_MAXUINT32, 0);
capa_id = (guint32) check_id;
/* insert */