summaryrefslogtreecommitdiffstats
path: root/test/dtypes.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-07-30 01:59:24 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-07-30 01:59:24 (GMT)
commite99906f5175e1516a9f28b3acbcffd962637ca89 (patch)
tree71119df458d9eebee588761243ba6d5205ee816d /test/dtypes.c
parent0836a8cf5652392f59d3917446a7ca2af9234e09 (diff)
downloadhdf5-e99906f5175e1516a9f28b3acbcffd962637ca89.zip
hdf5-e99906f5175e1516a9f28b3acbcffd962637ca89.tar.gz
hdf5-e99906f5175e1516a9f28b3acbcffd962637ca89.tar.bz2
[svn-r17268] Description:
Bring r17266 from 1.8 branch to trunk: Clean up various compiler warnings from IRIX64 build Tested on: Mac OS X/32 (amazon) debug & production (yes, I know it's not an IRIX64 system :-) Too minor to require h5committest
Diffstat (limited to 'test/dtypes.c')
-rw-r--r--test/dtypes.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/dtypes.c b/test/dtypes.c
index 9138b50..545a098 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -2718,8 +2718,12 @@ test_compound_14(void)
rdata1.c1 = rdata1.c2 = 0;
if(rdata1.str) HDfree(rdata1.str);
- rdata2.c1 = rdata2.c2 = rdata2.l1 = rdata2.l2 = rdata2.l3 = rdata2.l4 = 0;
- if(rdata2.str) HDfree(rdata2.str);
+ rdata2.c1 = rdata2.c2 = 0;
+ rdata2.l1 = rdata2.l2 = rdata2.l3 = rdata2.l4 = 0;
+ if(rdata2.str) {
+ HDfree(rdata2.str);
+ rdata2.str = NULL;
+ } /* end if */
if(H5Dread(dset1_id, cmpd_m1_tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, &rdata1) < 0) {
H5_FAILED(); AT();