From 594da7961c69eb573a1bef26578a6ec536511535 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 5 Jun 2024 22:14:21 +0000 Subject: driver: tpax_lib_get_unit_ctx(): set ctx->link to null for non-symlink items. --- src/driver/tpax_unit_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/tpax_unit_ctx.c b/src/driver/tpax_unit_ctx.c index 1fbc510..5c4cf80 100644 --- a/src/driver/tpax_unit_ctx.c +++ b/src/driver/tpax_unit_ctx.c @@ -65,7 +65,7 @@ int tpax_lib_get_unit_ctx( } ctx->path = path; - ctx->link = ctx->linkbuf; + ctx->link = ctx->linkbuf[0] ? ctx->linkbuf : 0; ctx->uctx.path = &ctx->path; ctx->uctx.link = &ctx->link; -- cgit v1.2.3