summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-10-22 16:56:21 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-10-22 16:56:21 (GMT)
commitdb13a048a8145968b629884cbc4a9b13ba8b93d7 (patch)
tree6f4a0f8af08cd6a1efe348710fe88a27774c20ba /test
parente8f801f91beb87ccbb4c54d285262f26f0dc4182 (diff)
downloadhdf5-db13a048a8145968b629884cbc4a9b13ba8b93d7.zip
hdf5-db13a048a8145968b629884cbc4a9b13ba8b93d7.tar.gz
hdf5-db13a048a8145968b629884cbc4a9b13ba8b93d7.tar.bz2
[svn-r17723] 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 platforms.
Diffstat (limited to 'test')
-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. */