Closed uartie closed 7 years ago
m_file member pointer is not initialized and will get an arbitrary value. If that arbitrary value is not 0, then it fools code like "if(m_file)" into thinking it's ok to use m_file.
Thus, ensure m_file is initialized to NULL in constructor.
Fixes 01org/libyami#743
Signed-off-by: U. Artie Eoff ullysses.a.eoff@intel.com
Thanks @uartie for fixing the bug.
+1
verify + 1
m_file member pointer is not initialized and will get an arbitrary value. If that arbitrary value is not 0, then it fools code like "if(m_file)" into thinking it's ok to use m_file.
Thus, ensure m_file is initialized to NULL in constructor.
Fixes 01org/libyami#743
Signed-off-by: U. Artie Eoff ullysses.a.eoff@intel.com