summaryrefslogtreecommitdiffstats
path: root/src/H5P.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-04-17 18:49:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-04-17 18:49:49 (GMT)
commit4433c857661d50e748788afcbd862a12133ce756 (patch)
tree29b6d55263e14006c1471e174fc1e79f5a2680b6 /src/H5P.c
parent67d22cb484f9d81cdef578deceb4a8ee5046a88b (diff)
downloadhdf5-4433c857661d50e748788afcbd862a12133ce756.zip
hdf5-4433c857661d50e748788afcbd862a12133ce756.tar.gz
hdf5-4433c857661d50e748788afcbd862a12133ce756.tar.bz2
[svn-r5195] Purpose:
Code cleanup Description: Got rid of the "H5T_BKG_TEMP" setting that was used internally to the library, since temporary background buffers are now handled by the individual conversion routines instead of in a global background buffer. No APIs were changed or affected by this. Platforms tested: FreeBSD 4.5 (sleipnir)
Diffstat (limited to 'src/H5P.c')
-rw-r--r--src/H5P.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/H5P.c b/src/H5P.c
index 3098419..dae7f19 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -3364,13 +3364,12 @@ H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value/*out*/)
*/
if (H5T_get_size(type)>=H5T_get_size(fill.type)) {
buf = value;
- if (tpath->cdata.need_bkg>=H5T_BKG_TEMP &&
- NULL==(bkg=H5MM_malloc(H5T_get_size(type))))
+ if (tpath->cdata.need_bkg && NULL==(bkg=H5MM_malloc(H5T_get_size(type))))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for type conversion");
} else {
if (NULL==(buf=H5MM_malloc(H5T_get_size(fill.type))))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for type conversion");
- if (tpath->cdata.need_bkg>=H5T_BKG_TEMP)
+ if (tpath->cdata.need_bkg)
bkg = value;
}
HDmemcpy(buf, fill.buf, H5T_get_size(fill.type));