[svn-r6206]

Purpose:
    Improve error handling
Description:
    make error handling better for VL string null pointer.
Platform tested:
    arabica
This commit is contained in:
Raymond Lu 2002-12-13 16:17:46 -05:00
parent 6aa87a74e1
commit 69195e41a9

View File

@ -2238,8 +2238,8 @@ H5T_conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, hsize_t nelmts,
d = *dptr;
/* Get length of element sequences */
seq_len=(*(src->u.vlen.getlen))(src->u.vlen.f,s);
assert(seq_len>=0);
if((seq_len=(*(src->u.vlen.getlen))(src->u.vlen.f,s))<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "null pointer");
H5_CHECK_OVERFLOW(seq_len,hssize_t,size_t);
src_size=(size_t)seq_len*src_base_size;
dst_size=(size_t)seq_len*dst_base_size;