add: ptr->initialized = 1;
context: int new_pdomain(str* _n, int _s, pdomain_t** _d, register_watcher_t _r, unregister_watcher_t _u){	int i;	pdomain_t* ptr;		ptr = (pdomain_t*)shm_malloc(sizeof(pdomain_t));	if (!ptr) {		paerrno = PA_NO_MEMORY;		LOG(L_ERR, "new_pdomain(): No memory left\n");		return -1;	}	memset(ptr, 0, sizeof(pdomain_t));		ptr->table = (hslot_t*)shm_malloc(sizeof(hslot_t) * _s);	if (!ptr->table) {		paerrno = PA_NO_MEMORY;		LOG(L_ERR, "new_pdomain(): No memory left 2\n");		shm_free(ptr);		return -2;	}	ptr->name = _n;		for(i = 0; i < _s; i++) {		init_slot(ptr, &ptr->table[i]);	}	ptr->size = _s;	lock_init(&ptr->lock);	ptr->users = 0;	ptr->expired = 0;		ptr->reg = _r;	ptr->unreg = _u;	*_d = ptr;	return 0;}