diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/state.c | 8 | ||||
-rw-r--r-- | src/world.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/state.c b/src/state.c index 48d7230..5eb44a4 100644 --- a/src/state.c +++ b/src/state.c @@ -257,9 +257,9 @@ static char* make_path(LV2_State_Make_Path_Handle handle, const char* path) { const LilvState* state = (const LilvState*)handle; - zix_create_directories(NULL, state->dir); - - return zix_path_join(NULL, state->dir, path); + return !zix_create_directories(NULL, state->dir) + ? zix_path_join(NULL, state->dir, path) + : NULL; } static bool @@ -913,7 +913,7 @@ remove_manifest_entry(SordWorld* world, SordModel* model, const char* subject) SordNode* s = sord_new_uri(world, USTR(subject)); SordIter* i = sord_search(model, s, NULL, NULL, NULL); while (!sord_iter_end(i)) { - sord_erase(model, i); + (void)sord_erase(model, i); } sord_iter_free(i); sord_node_free(world, s); diff --git a/src/world.c b/src/world.c index 1d60c45..73f19a9 100644 --- a/src/world.c +++ b/src/world.c @@ -384,7 +384,7 @@ lilv_collection_find_by_uri(const ZixTree* seq, const LilvNode* uri) ZixTreeIter* i = NULL; if (lilv_node_is_uri(uri)) { struct LilvHeader key = {NULL, (LilvNode*)uri}; - zix_tree_find(seq, &key, &i); + (void)zix_tree_find(seq, &key, &i); } return i; } |