summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 2cffcfb..a693d2d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -177,7 +177,7 @@ lilv_expand(const char* path)
// Append variable value (or $VAR_NAME if not found)
char* var = (char*)calloc(t - s, 1);
memcpy(var, s + 1, t - s - 1);
- append_var(out, &len, var);
+ out = append_var(out, &len, var);
free(var);
// Continue after variable reference
@@ -188,7 +188,7 @@ lilv_expand(const char* path)
} else if (*s == '~' && (*(s + 1) == '/' || !*(s + 1))) {
// Hit ~ before slash or end of string (home directory reference)
out = strappend(out, &len, start, s - start);
- append_var(out, &len, "HOME");
+ out = append_var(out, &len, "HOME");
start = ++s;
} else {
++s;