Skip to content

Commit

Permalink
Fix buf in hown()
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Sustrik <[email protected]>
  • Loading branch information
sustrik committed Jul 15, 2018
1 parent 8ffd14a commit 60799d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ int dill_hown(int h) {
dill_assert(rc == 0);
return -1;
}
/* In case handle array was reallocated we have to recompute the pointer. */
hndl = &ctx->handles[h];
/* Return a handle to the shared pool. */
hndl->ptr = NULL;
hndl->next = -1;
Expand Down

0 comments on commit 60799d8

Please sign in to comment.