summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/vfd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/vfd.c b/test/vfd.c
index 597d18b..f5a29c5 100644
--- a/test/vfd.c
+++ b/test/vfd.c
@@ -838,8 +838,9 @@ test_family_compat(void)
sprintf(pathname_individual, pathname, counter);
}
- if (old_fp = HDfopen(pathname_individual,"rb")
- && (tmp_fp = fopen(newname_individual,"wb"))) TEST_ERROR
+ if ((NULL != (old_fp = HDfopen(pathname_individual,"rb"))) &&
+ (NULL != (tmp_fp = HDfopen(newname_individual,"wb"))))
+ TEST_ERROR;
/* Make sure we can open the file. Use the read and write mode to flush the
* superblock. */