diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-10-17 22:44:41 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-10-17 22:44:41 (GMT) |
commit | 40834120338a80f15a12723073a72ca892be6d8a (patch) | |
tree | 430f171b52adb0ffbe242652d4ed28eb4e094f01 /test/vfd.c | |
parent | 1825d962dfe90fdb246ea5d97c124aa952c57369 (diff) | |
download | hdf5-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
Diffstat (limited to 'test/vfd.c')
-rw-r--r-- | test/vfd.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. */ |