if (tags) {
nua_move_signal(cr->cr_signal, nh->nh_nua->nua_signal);
- if (cr->cr_signal) {
+ if (cr->cr_signal[0]) {
/* Steal reference from signal */
cr->cr_owner = e->e_nh, e->e_nh = NULL;
cr->cr_tags = tags;
if (status >= 200) {
for (nh = nua->nua_handles; nh; nh = nh_next) {
nh_next = nh->nh_next;
- while (nh->nh_ds && nh->nh_ds->ds_usage) {
+ while (nh->nh_ds->ds_usage) {
nua_dialog_usage_remove(nh, nh->nh_ds, nh->nh_ds->ds_usage, NULL, NULL);
}
}
su_home_t *home,
int early_only)
{
- if (nh && nh->nh_ds && nh->nh_ds->ds_leg)
+ if (nh && nh->nh_ds->ds_leg)
return nta_leg_make_replaces(nh->nh_ds->ds_leg, home, early_only);
else
return NULL;