1
0
mirror of https://github.com/falk-werner/webfuse-provider synced 2024-10-27 20:44:10 +00:00

fix: crash if libfuse is not available at runtime

This commit is contained in:
Falk Werner 2020-06-06 00:00:08 +02:00
parent 82dedba6a1
commit 38ef0ddd9a
2 changed files with 5 additions and 1 deletions

View File

@ -5,6 +5,7 @@
### Fixes ### Fixes
* Fix meson build failure when gtest or jansson are not installed * Fix meson build failure when gtest or jansson are not installed
* Fix crash if libfuse is not available at runtime
## 0.3.0 _(Fri Jun 05 2020)_ ## 0.3.0 _(Fri Jun 05 2020)_

View File

@ -109,8 +109,11 @@ bool wf_impl_session_add_filesystem(
if (result) if (result)
{ {
struct wf_impl_filesystem * filesystem = wf_impl_filesystem_create(session, name, mountpoint); struct wf_impl_filesystem * filesystem = wf_impl_filesystem_create(session, name, mountpoint);
wf_slist_append(&session->filesystems, &filesystem->item);
result = (NULL != filesystem); result = (NULL != filesystem);
if (result)
{
wf_slist_append(&session->filesystems, &filesystem->item);
}
} }
// cleanup on error // cleanup on error