diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-10-22 16:56:21 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-10-22 16:56:21 (GMT) |
commit | db13a048a8145968b629884cbc4a9b13ba8b93d7 (patch) | |
tree | 6f4a0f8af08cd6a1efe348710fe88a27774c20ba | |
parent | e8f801f91beb87ccbb4c54d285262f26f0dc4182 (diff) | |
download | hdf5-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.
-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. */ |