summaryrefslogtreecommitdiffstats
path: root/src/state.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-12 17:54:27 -0500
committerDavid Robillard <d@drobilla.net>2022-11-16 10:22:55 -0500
commit072e460e00cc0460a3385d73f266262956cd3014 (patch)
treec1d40c726fc5eed14c61b4547877ebdb9dbf1e4e /src/state.c
parent42439bc6e35eef7c3cc905c60b5924c200b49ec8 (diff)
downloadlilv-072e460e00cc0460a3385d73f266262956cd3014.tar.gz
lilv-072e460e00cc0460a3385d73f266262956cd3014.tar.bz2
lilv-072e460e00cc0460a3385d73f266262956cd3014.zip
Use zix_path_is_absolute()
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c
index 7ee8f87..ba2df78 100644
--- a/src/state.c
+++ b/src/state.c
@@ -340,7 +340,7 @@ absolute_path(LV2_State_Map_Path_Handle handle, const char* state_path)
{
LilvState* state = (LilvState*)handle;
char* path = NULL;
- if (lilv_path_is_absolute(state_path)) {
+ if (zix_path_is_absolute(state_path)) {
// Absolute path, return identical path
path = lilv_strdup(state_path);
} else if (state->dir) {
@@ -573,7 +573,7 @@ set_state_dir_from_model(LilvState* state, const SordNode* graph)
state->dir = zix_path_join(NULL, path, NULL);
free(path);
}
- assert(!state->dir || lilv_path_is_absolute(state->dir));
+ assert(!state->dir || zix_path_is_absolute(state->dir));
}
static LilvState*