summaryrefslogtreecommitdiffstats
path: root/c++/src/H5Attribute.cpp
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2015-03-15 06:45:24 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2015-03-15 06:45:24 (GMT)
commit66a7cc1289bcae4d2ad91d500b8b1f636cc7ffd6 (patch)
tree5c9fa262115c6b182f1adce1970bfc22ae1d3fd2 /c++/src/H5Attribute.cpp
parentf9fe5b4c321d7b3cfc8115307051ca72508f2e0c (diff)
downloadhdf5-66a7cc1289bcae4d2ad91d500b8b1f636cc7ffd6.zip
hdf5-66a7cc1289bcae4d2ad91d500b8b1f636cc7ffd6.tar.gz
hdf5-66a7cc1289bcae4d2ad91d500b8b1f636cc7ffd6.tar.bz2
[svn-r26456] Purpose: Fix warnings HDFFV-8658
Description: Fixed base classes that were in wrong order on the prototype lines and some misc. warnings. Platforms tested: Linux/64 (platypus) Linux/32 2.6 (jam) SunOS 5.11 (emu)
Diffstat (limited to 'c++/src/H5Attribute.cpp')
-rw-r--r--c++/src/H5Attribute.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/c++/src/H5Attribute.cpp b/c++/src/H5Attribute.cpp
index a9e928d..6b5c753 100644
--- a/c++/src/H5Attribute.cpp
+++ b/c++/src/H5Attribute.cpp
@@ -392,10 +392,12 @@ H5std_string Attribute::getName() const
//--------------------------------------------------------------------------
H5std_string Attribute::getName(size_t len) const
{
- H5std_string attr_name;
- ssize_t name_size = getName(attr_name, len);
- return(attr_name);
- // let caller catch exception if any
+ H5std_string attr_name;
+ ssize_t name_size = getName(attr_name, len);
+ if (name_size < 0)
+ return("");
+ else
+ return(attr_name);
}
//--------------------------------------------------------------------------