Signed-off-by: Guo Yejun <yejun....@intel.com>
---
 utests/utest_generator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utests/utest_generator.py b/utests/utest_generator.py
index 8d2f2a8..dbce45b 100644
--- a/utests/utest_generator.py
+++ b/utests/utest_generator.py
@@ -24,7 +24,7 @@ def udebug(ulpSize,returnType):
 
     const char* env_strict = getenv("OCL_STRICT_CONFORMANCE");
 
-    if ( strcmp(env_strict, "0") == 0)
+    if (env_strict != NULL && strcmp(env_strict, "0") == 0)
       ULPSIZE_FACTOR = 1000;
     else
       ULPSIZE_FACTOR = 1;
-- 
1.8.3.2

_______________________________________________
Beignet mailing list
Beignet@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to