rem: if (!_uri || !_p) { paerrno = PA_INTERNAL_ERROR; LOG(L_ERR, "new_presentity(): Invalid parameter value\n"); return -1; }
add: if (!_uri || !_p) { paerrno = PA_INTERNAL_ERROR; LOG(L_ERR, "new_presentity_no_wb(): Invalid parameter value\n"); return -1; }
context: int new_presentity_no_wb(struct pdomain *pdomain, str* _uri, presentity_t** _p){     presentity_t* presentity;     int size = 0;     if (!_uri || !_p) {	  paerrno = PA_INTERNAL_ERROR;	  LOG(L_ERR, "new_presentity(): Invalid parameter value\n");	  return -1;     }     size = sizeof(presentity_t) + _uri->len + 1;     presentity = (presentity_t*)shm_malloc(size);     if (!presentity) {	  paerrno = PA_NO_MEMORY;	  LOG(L_ERR, "new_presentity(): No memory left: size=%d\n", size);	  return -1;     }     memset(presentity, 0, sizeof(presentity_t));     presentity->uri.s = ((char*)presentity) + sizeof(presentity_t);     strncpy(presentity->uri.s, _uri->s, _uri->len);     presentity->uri.s[_uri->len] = 0;     presentity->uri.len = _uri->len;     presentity->pdomain = pdomain;     *_p = presentity;     LOG(L_ERR, "new_presentity_no_wb=%p for uri=%.*s\n", 	 presentity, presentity->uri.len, presentity->uri.s);     return 0;}