summaryrefslogtreecommitdiffstats
path: root/hl/src/H5PT.c
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2014-09-30 22:16:33 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2014-09-30 22:16:33 (GMT)
commitf2535031952d9c848538043829d43108575cdce3 (patch)
treee453c00776fc144e3cd90bdab09ccece62b1efb5 /hl/src/H5PT.c
parenta9ac64296a8c819d842ffd1dff225c888870c8dc (diff)
downloadhdf5-f2535031952d9c848538043829d43108575cdce3.zip
hdf5-f2535031952d9c848538043829d43108575cdce3.tar.gz
hdf5-f2535031952d9c848538043829d43108575cdce3.tar.bz2
[svn-r25642] merged changes 25614,25629,25631 into branch.
Diffstat (limited to 'hl/src/H5PT.c')
-rw-r--r--hl/src/H5PT.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/hl/src/H5PT.c b/hl/src/H5PT.c
index d3a03cd..7a0bc20 100644
--- a/hl/src/H5PT.c
+++ b/hl/src/H5PT.c
@@ -84,6 +84,11 @@ hid_t H5PTcreate_fl ( hid_t loc_id,
hsize_t maxdims[1];
hid_t ret_value;
+ /* check the arguments */
+ if (dset_name == NULL) {
+ goto out;
+ }
+
/* Register the packet table ID type if this is the first table created */
if(H5PT_ptable_id_type < 0)
if((H5PT_ptable_id_type = H5Iregister_type((size_t)H5PT_HASH_TABLE_SIZE, 0, (H5I_free_t)H5PT_free_id)) < 0)
@@ -178,6 +183,11 @@ hid_t H5PTcreate_vl ( hid_t loc_id,
hid_t ret_value=H5I_BADID;
hid_t vltype;
+ /* check the arguments */
+ if (dset_name == NULL) {
+ goto out;
+ }
+
/* Create a variable length type that uses single bytes as its base type */
vltype = H5Tvlen_create(H5T_NATIVE_UCHAR);
if(vltype < 0)
@@ -232,6 +242,11 @@ hid_t H5PTopen( hid_t loc_id,
hid_t ret_value;
hsize_t dims[1];
+ /* check the arguments */
+ if (dset_name == NULL) {
+ goto out;
+ }
+
/* Register the packet table ID type if this is the first table created */
if( H5PT_ptable_id_type < 0)
if((H5PT_ptable_id_type = H5Iregister_type((size_t)H5PT_HASH_TABLE_SIZE, 0, (H5I_free_t)H5PT_free_id)) < 0)