aboutsummaryrefslogtreecommitdiff
path: root/src/triplet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/triplet.c')
-rw-r--r--src/triplet.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/triplet.c b/src/triplet.c
index 840ecce..f1c5b6f 100644
--- a/src/triplet.c
+++ b/src/triplet.c
@@ -736,11 +736,8 @@ DECL_TRIPLET_EXP(source_dir, spool->source_dir)
static int
expand_relative_dir(char **ret, struct wy_triplet *trp)
{
- if (trp) {
- char const *dir;
- if (directive_get_value(trp, "directory", &dir) == 0)
- return wy_expand_copy(ret, dir);
- }
+ if (trp)
+ return wy_expand_copy(ret, trp->relative_dir);
return WRDSE_UNDEF;
}

Return to:

Send suggestions and report system problems to the System administrator.