rem: if ((_c->flags & FL_MEM) != FL_MEM) {
add: if (_c->flags & FL_MEM) {
context: int db_insert_ucontact(ucontact_t* _c){	char b[256];	char* dom;	db_key_t keys[12];	db_val_t vals[12];		if ((_c->flags & FL_MEM) != FL_MEM) {		return 0;	}	keys[0] = user_col.s;	keys[1] = contact_col.s;	keys[2] = expires_col.s;	keys[3] = q_col.s;	keys[4] = callid_col.s;	keys[5] = cseq_col.s;	keys[6] = replicate_col.s;	keys[7] = flags_col.s;	keys[8] = state_col.s;	keys[9] = user_agent_col.s;	keys[10] = received_col.s;	keys[11] = domain_col.s;	vals[0].type = DB_STR;	vals[0].nul = 0;	vals[0].val.str_val.s = _c->aor->s;	vals[0].val.str_val.len = _c->aor->len;	vals[1].type = DB_STR;	vals[1].nul = 0;	vals[1].val.str_val.s = _c->c.s; 	vals[1].val.str_val.len = _c->c.len;	vals[2].type = DB_DATETIME;	vals[2].nul = 0;	vals[2].val.time_val = _c->expires;	vals[3].type = DB_DOUBLE;	vals[3].nul = 0;	vals[3].val.double_val = q2double(_c->q);	vals[4].type = DB_STR;	vals[4].nul = 0;	vals[4].val.str_val.s = _c->callid.s;	vals[4].val.str_val.len = _c->callid.len;	vals[5].type = DB_INT;	vals[5].nul = 0;	vals[5].val.int_val = _c->cseq;	vals[6].type = DB_INT;	vals[6].nul = 0;	vals[6].val.int_val = _c->replicate;	vals[7].type = DB_INT;	vals[7].nul = 0;	vals[7].val.bitmap_val = _c->flags;	vals[8].type = DB_INT;	vals[8].nul = 0;	if (_c->state < CS_ZOMBIE_N)		vals[8].val.int_val = 0;	else		vals[8].val.int_val = 1;	vals[9].type = DB_STR;	vals[9].nul = 0;	vals[9].val.str_val.s = _c->user_agent.s;	vals[9].val.str_val.len = _c->user_agent.len;	vals[10].type = DB_STR;	if (_c->received.s == 0) {		vals[10].nul = 1;	} else {		vals[10].nul = 0;		vals[10].val.str_val.s = _c->received.s;		vals[10].val.str_val.len = _c->received.len;	}	if (use_domain) {		dom = q_memchr(_c->aor->s, '@', _c->aor->len);		vals[0].val.str_val.len = dom - _c->aor->s;		vals[11].type = DB_STR;		vals[11].nul = 0;		vals[11].val.str_val.s = dom + 1;		vals[11].val.str_val.len = _c->aor->s + _c->aor->len - dom - 1;	}	     /* FIXME */	memcpy(b, _c->domain->s, _c->domain->len);	b[_c->domain->len] = '\0';	if (ul_dbf.use_table(ul_dbh, b) < 0) {		LOG(L_ERR, "db_insert_ucontact(): Error in use_table\n");		return -1;	}	if (ul_dbf.insert(ul_dbh, keys, vals, (use_domain) ? (12) : (11)) < 0) {		LOG(L_ERR, "db_insert_ucontact(): Error while inserting contact\n");		return -1;	}	return 0;}