rem: if ((_c->flags & FL_MEM) != FL_MEM) {
add: if (_c->flags & FL_MEM) {
context: int db_update_ucontact(ucontact_t* _c){	char b[256];	char* dom;	db_key_t keys1[3];	db_val_t vals1[3];	db_key_t keys2[9];	db_val_t vals2[9];	if ((_c->flags & FL_MEM) != FL_MEM) {		return 0;	}	keys1[0] = user_col.s;	keys1[1] = contact_col.s;	keys1[2] = domain_col.s;	keys2[0] = expires_col.s;	keys2[1] = q_col.s;	keys2[2] = callid_col.s;	keys2[3] = cseq_col.s;	keys2[4] = replicate_col.s;	keys2[5] = state_col.s;	keys2[6] = flags_col.s;	keys2[7] = user_agent_col.s;	keys2[8] = received_col.s;		vals1[0].type = DB_STR;	vals1[0].nul = 0;	vals1[0].val.str_val = *_c->aor;	vals1[1].type = DB_STR;	vals1[1].nul = 0;	vals1[1].val.str_val = _c->c;	vals2[0].type = DB_DATETIME;	vals2[0].nul = 0;	vals2[0].val.time_val = _c->expires;	vals2[1].type = DB_DOUBLE;	vals2[1].nul = 0;	vals2[1].val.double_val = q2double(_c->q);	vals2[2].type = DB_STR;	vals2[2].nul = 0;	vals2[2].val.str_val = _c->callid;	vals2[3].type = DB_INT;	vals2[3].nul = 0;	vals2[3].val.int_val = _c->cseq;	vals2[4].type = DB_INT;	vals2[4].nul = 0;	vals2[4].val.int_val = _c->replicate;	vals2[5].type = DB_INT;	vals2[5].nul = 0;	if (_c->state < CS_ZOMBIE_N) {		vals2[5].val.int_val = 0;	} else {		vals2[5].val.int_val = 1;	}	vals2[6].type = DB_INT;	vals2[6].nul = 0;	vals2[6].val.bitmap_val = _c->flags;	vals2[7].type = DB_STR;	vals2[7].nul = 0;	vals2[7].val.str_val = _c->user_agent;	vals2[8].type = DB_STR;	if (_c->received.s == 0) {		vals2[8].nul = 1;	} else {		vals2[8].nul = 0;		vals2[8].val.str_val = _c->received;	}	if (use_domain) {		dom = q_memchr(_c->aor->s, '@', _c->aor->len);		vals1[0].val.str_val.len = dom - _c->aor->s;		vals1[2].type = DB_STR;		vals1[2].nul = 0;		vals1[2].val.str_val.s = dom + 1;		vals1[2].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_upd_ucontact(): Error in use_table\n");		return -1;	}	if (ul_dbf.update(ul_dbh, keys1, 0, vals1, keys2, vals2, (use_domain) ? (3) : (2), 9) < 0) {		LOG(L_ERR, "db_upd_ucontact(): Error while updating database\n");		return -1;	}	return 0;}