summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-02-20 15:12:47 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-02-20 15:12:47 (GMT)
commitb362c692dc09558ce93b1d27aa59d4646201ad32 (patch)
tree3336096d3c55de17245f1569442f5ab0ef03e80b /c++
parent644f2303a163ed475e469653a536b9114cf699be (diff)
downloadhdf5-b362c692dc09558ce93b1d27aa59d4646201ad32.zip
hdf5-b362c692dc09558ce93b1d27aa59d4646201ad32.tar.gz
hdf5-b362c692dc09558ce93b1d27aa59d4646201ad32.tar.bz2
[svn-r10049] Purpose: Fix bugzilla #241
Description: Checked return value from C API for failure condition. Platforms tested: Linux 2.4 (heping) AIX 5.1 (copper)
Diffstat (limited to 'c++')
-rw-r--r--c++/src/H5PropList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/src/H5PropList.cpp b/c++/src/H5PropList.cpp
index 02c1bde..2239724 100644
--- a/c++/src/H5PropList.cpp
+++ b/c++/src/H5PropList.cpp
@@ -352,7 +352,7 @@ size_t PropList::getPropSize(const char *name) const
{
size_t prop_size;
herr_t ret_value = H5Pget_size(id, name, &prop_size);
- if (prop_size < 0)
+ if (ret_value < 0)
{
throw PropListIException("PropList::getPropSize", "H5Pget_size failed");
}
@@ -404,7 +404,7 @@ size_t PropList::getNumProps() const
{
size_t nprops;
herr_t ret_value = H5Pget_nprops (id, &nprops);
- if( nprops < 0 )
+ if (ret_value < 0)
{
throw PropListIException("PropList::getNumProps", "H5Pget_nprops failed");
}