summaryrefslogtreecommitdiffstats
path: root/test/hdfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/hdfs.c')
-rw-r--r--test/hdfs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/hdfs.c b/test/hdfs.c
index 0f4969e..31efa08 100644
--- a/test/hdfs.c
+++ b/test/hdfs.c
@@ -234,9 +234,10 @@ if (!(condition)) { \
*----------------------------------------------------------------------------
*/
#define JSERR_STR(expected, actual, reason) { \
+ const char *_reason = reason; \
JSFAILED_AT() \
- if ((reason) != NULL) { \
- HDprintf("%s\n", (reason)); \
+ if (_reason != NULL) { \
+ HDprintf("%s\n", _reason); \
} else { \
HDprintf("!!! Expected:\n%s\n!!!Actual:\n%s\n", \
(expected), (actual)); \