From 7bed17b14badd8210a87795a89874ae5f3ba5b7a Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 13 Jan 2020 19:01:30 -0500 Subject: [PATCH] Fix clang warning --- test_regress/t/t_vpi_var.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_regress/t/t_vpi_var.cpp b/test_regress/t/t_vpi_var.cpp index 91ba19008..9fdd7dc1b 100644 --- a/test_regress/t/t_vpi_var.cpp +++ b/test_regress/t/t_vpi_var.cpp @@ -84,7 +84,7 @@ unsigned int callback_count_strs_max = 500; #define CHECK_RESULT_CSTR(got, exp) \ if (strcmp((got), (exp))) { \ printf("%%Error: %s:%d: GOT = '%s' EXP = '%s'\n", FILENM, __LINE__, \ - (got) ? (got) : "", (exp) ? (exp) : ""); \ + ((got) != NULL) ? (got) : "", ((exp) != NULL) ? (exp) : ""); \ return __LINE__; \ }