Fix segmentation fault that sometimes occurs on release builds

Fixes SWDEV-216441

Change-Id: I3ea01a4edd14000a103de751757dfaadc7d358bb
This commit is contained in:
Chris Freehill
2020-02-24 17:17:26 -06:00
vanhempi 2d6e15190c
commit 0bf81ed2f9
+1 -1
Näytä tiedosto
@@ -51,7 +51,7 @@
#include <string>
#define DBG_FILE_ERROR(FN, WR_STR) \
if (env_->debug_output_bitfield & RSMI_DEBUG_SYSFS_FILE_PATHS) { \
if (env_ && env_->debug_output_bitfield & RSMI_DEBUG_SYSFS_FILE_PATHS) { \
std::cout << "*****" << __FUNCTION__ << std::endl; \
std::cout << "*****Opening file: " << (FN) << std::endl; \
if ((WR_STR) != nullptr) { \