diff --git a/src/engine/shared/fifo.cpp b/src/engine/shared/fifo.cpp index dab66675f..f6200249e 100644 --- a/src/engine/shared/fifo.cpp +++ b/src/engine/shared/fifo.cpp @@ -1,5 +1,6 @@ #include "fifo.h" +#include #if defined(CONF_FAMILY_UNIX) #include @@ -48,7 +49,8 @@ void CFifo::Init(IConsole *pConsole, char *pFifoFile, int Flag) void CFifo::Shutdown() { - fclose(m_File); + if(m_File) + fclose(m_File); } void CFifo::Update()