Commit e7f8d6af authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Setting suh_size of cloned home structures.

darcs-hash:20050912153920-65a35-e49b5901c57cec6dc1818fb29e97283b33bf1fa3.gz
parent 8c69cfdc
......@@ -423,6 +423,7 @@ void *sub_alloc(su_home_t *home,
if (!subhome->suh_blocks)
return (void)free(data), NULL;
subhome->suh_size = size;
subhome->suh_blocks->sub_parent = home;
}
......@@ -465,6 +466,7 @@ void *su_home_new(int size)
home = calloc(1, size);
if (home) {
home->suh_size = size;
home->suh_blocks = su_hash_alloc(SUB_N);
if (home->suh_blocks)
home->suh_blocks->sub_ref = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment