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

fix: do not ignore return value of mkdtemp

This commit is contained in:
Falk Werner 2020-03-01 14:00:49 +01:00
parent 7856b5a99d
commit 1b4034e081

View File

@ -20,7 +20,12 @@ public:
: is_shutdown_requested(false) : is_shutdown_requested(false)
{ {
snprintf(base_dir, WF_PATH_MAX, "%s", "/tmp/webfuse_test_integration_XXXXXX"); snprintf(base_dir, WF_PATH_MAX, "%s", "/tmp/webfuse_test_integration_XXXXXX");
mkdtemp(base_dir); char const * result = mkdtemp(base_dir);
if (NULL == result)
{
throw std::runtime_error("unable to create temp dir");
}
config = wf_server_config_create(); config = wf_server_config_create();
wf_server_config_set_port(config, 8080); wf_server_config_set_port(config, 8080);