rem: if (presentity->location.len && strcmp(presentity->location.s, location.s) != 0)
add: if (presentity->location.loc.len && strcmp(presentity->location.loc.s, location.s) != 0)
context: static int publish_presentity(struct sip_msg* _m, struct pdomain* _d, 			     struct presentity* presentity, int *pchanged){	char *body = get_body(_m);	str basic;	str location;	int changed = 0;	int ret = 0;	parse_pidf(body, &basic, &location);	LOG(L_INFO, "publish_presentity: -1-\n");	if (basic.len && basic.s) {		int origstate = presentity->state;		presentity->state =			(strcmp(basic.s, "online") == 0) ? PS_ONLINE : PS_OFFLINE;		if (presentity->state != origstate)			changed = 1;	}	LOG(L_INFO, "publish_presentity: -2-\n");	if (location.len && location.s) {		if (presentity->location.len && strcmp(presentity->location.s, location.s) != 0)			changed = 1;		presentity->location.len = location.len;		presentity->location.s = location.s;	}	LOG(L_INFO, "publish_presentity: -3-\n");	if (pchanged && changed) {		*pchanged = 1;	}	if ((ret = db_update_presentity(presentity)) < 0) {		return ret;	}	LOG(L_INFO, "publish_presentity: -4-\n");	return 0;}