WIP: Fix minor C89 issue
This commit is contained in:
parent
b4f82a388d
commit
f7219dcaec
1 changed files with 2 additions and 1 deletions
|
@ -1550,7 +1550,8 @@ __resource_conn_dtor(ErlNifEnv *env, void *obj)
|
||||||
WterlConnHandle *conn_handle = (WterlConnHandle *)obj;
|
WterlConnHandle *conn_handle = (WterlConnHandle *)obj;
|
||||||
/* Free up the shared sessions and cursors. */
|
/* Free up the shared sessions and cursors. */
|
||||||
enif_mutex_lock(conn_handle->context_mutex);
|
enif_mutex_lock(conn_handle->context_mutex);
|
||||||
for (int i = 0; i < conn_handle->num_contexts; i++) {
|
int i;
|
||||||
|
for (i = 0; i < conn_handle->num_contexts; i++) {
|
||||||
WterlCtx *ctx = &conn_handle->contexts[i];
|
WterlCtx *ctx = &conn_handle->contexts[i];
|
||||||
WT_CURSOR *cursor;
|
WT_CURSOR *cursor;
|
||||||
kh_foreach_value(ctx->cursors, cursor, {
|
kh_foreach_value(ctx->cursors, cursor, {
|
||||||
|
|
Loading…
Reference in a new issue