Fix mkstemp unused result warning
This commit is contained in:
@@ -68,7 +68,13 @@ DRMProcessorClientImpl::DRMProcessorClientImpl():
|
||||
strcpy(cookiejar, "/tmp/libgourou_cookie_jar_XXXXXX");
|
||||
#endif
|
||||
|
||||
mkstemp(cookiejar);
|
||||
int fd = mkstemp(cookiejar);
|
||||
if (fd >= 0)
|
||||
close(fd);
|
||||
else
|
||||
{
|
||||
EXCEPTION(gourou::CLIENT_FILE_ERROR, "mkstemp error");
|
||||
}
|
||||
}
|
||||
|
||||
DRMProcessorClientImpl::~DRMProcessorClientImpl()
|
||||
|
||||
Reference in New Issue
Block a user