diff --git a/src/driver/toks_driver_ctx.c b/src/driver/toks_driver_ctx.c index 82aba08..44a77cc 100644 --- a/src/driver/toks_driver_ctx.c +++ b/src/driver/toks_driver_ctx.c @@ -604,7 +604,7 @@ int toks_get_driver_ctx( ctx->cctx.uuid = &ctx->uuid; ctx->rtdata->hroot = cctx.hroot; - ctx->rtdata->hlog = hlog; + ctx->rtdata->hlog = hlog ? hlog : ctx->rtdata->hlog; toks_set_driver_refstr(&ctx->ctx,refstr);