[svn-r24929] Description:

Added proper deallocation/allocation to test.
    Revised incorrect comments.
Platforms tested:
    Linux/ppc64 (ostrich)
    Linux/32 2.6 (jam)
    SunOS 5.11 (emu)
This commit is contained in:
Binh-Minh Ribler
2014-03-31 00:27:17 -05:00
parent 82df757e96
commit 5f17eea9cd
2 changed files with 7 additions and 4 deletions

View File

@@ -237,9 +237,8 @@ void DSetMemXferPropList::setDataTransform(const H5std_string& expression) const
//--------------------------------------------------------------------------
ssize_t DSetMemXferPropList::getDataTransform(char* exp, size_t buf_size) const
{
// If application does not pass in
// H5Pget_data_transform will get buf_size characters of the expression including
// the null terminator
// H5Pget_data_transform will get buf_size characters of the expression
// including the null terminator
ssize_t exp_len;
exp_len = H5Pget_data_transform(id, exp, buf_size);
@@ -254,7 +253,7 @@ ssize_t DSetMemXferPropList::getDataTransform(char* exp, size_t buf_size) const
// expression or at [buf_size-1] if the expression is at least the size
// of the buffer.
// Return the actual comment length, which might be different from buf_size
// Return the expression length, which might be different from buf_size
return(exp_len);
}