Fix mkstemp unused result warning

This commit is contained in:
2026-01-12 21:48:41 +01:00
parent 8a86bafbdc
commit 6bff559806

View File

@@ -68,7 +68,13 @@ DRMProcessorClientImpl::DRMProcessorClientImpl():
strcpy(cookiejar, "/tmp/libgourou_cookie_jar_XXXXXX"); strcpy(cookiejar, "/tmp/libgourou_cookie_jar_XXXXXX");
#endif #endif
mkstemp(cookiejar); int fd = mkstemp(cookiejar);
if (fd >= 0)
close(fd);
else
{
EXCEPTION(gourou::CLIENT_FILE_ERROR, "mkstemp error");
}
} }
DRMProcessorClientImpl::~DRMProcessorClientImpl() DRMProcessorClientImpl::~DRMProcessorClientImpl()