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 ab39da6..9f5874f 100644
--- a/test/hdfs.c
+++ b/test/hdfs.c
@@ -235,9 +235,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)); \