summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-10-17 22:44:41 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-10-17 22:44:41 (GMT)
commit40834120338a80f15a12723073a72ca892be6d8a (patch)
tree430f171b52adb0ffbe242652d4ed28eb4e094f01
parent1825d962dfe90fdb246ea5d97c124aa952c57369 (diff)
downloadhdf5-40834120338a80f15a12723073a72ca892be6d8a.zip
hdf5-40834120338a80f15a12723073a72ca892be6d8a.tar.gz
hdf5-40834120338a80f15a12723073a72ca892be6d8a.tar.bz2
[svn-r17666] Bug fix:
The file failed to compiled in AIX which flags syntax error. Fixed by making the statements more explicitly compare with NULL and added a missing trailing semi-colon. Tested: Tested in AIX (Up at LLNL) only. The changes are trivial and should be portable to all platform.s
-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. */