summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-06-05 22:14:21 +0000
committermidipix <writeonce@midipix.org>2024-06-05 22:14:21 +0000
commit594da7961c69eb573a1bef26578a6ec536511535 (patch)
treece2a4ed8777e85f3b782ed520efe9234e06225ef
parentee80f814e924d7e84e02b290f5f8796d6c4b05be (diff)
downloadtpax-594da7961c69eb573a1bef26578a6ec536511535.tar.bz2
tpax-594da7961c69eb573a1bef26578a6ec536511535.tar.xz
driver: tpax_lib_get_unit_ctx(): set ctx->link to null for non-symlink items.
-rw-r--r--src/driver/tpax_unit_ctx.c2
1 files changed, 1 insertions, 1 deletions
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;