mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #21631: yamlemitter: don't close invalid file descriptor
This commit is contained in:
@ -76,8 +76,10 @@ void YamlEmitter::close()
|
||||
|
||||
// Refererence:
|
||||
// http://www.parashift.com/c++-faq-lite/exceptions.html#faq-17.9
|
||||
if (!fd_)
|
||||
if (!fd_) {
|
||||
ERROR("File descriptor not valid");
|
||||
return;
|
||||
}
|
||||
|
||||
if (fclose(fd_))
|
||||
ERROR("Error closing file descriptor");
|
||||
|
Reference in New Issue
Block a user