From db13a048a8145968b629884cbc4a9b13ba8b93d7 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Thu, 22 Oct 2009 11:56:21 -0500 Subject: [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. --- test/vfd.c | 5 +++-- 1 file 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. */ -- cgit v0.12