summaryrefslogtreecommitdiffstats
path: root/src/H5detect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5detect.c')
-rw-r--r--src/H5detect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5detect.c b/src/H5detect.c
index 119822c..b429caf 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -362,7 +362,10 @@ H5T_init (void)\n\
/* The part common to fixed and floating types */
printf("\
- dt = H5MM_xcalloc (1, sizeof(H5T_t));\n\
+ if (NULL==(dt = H5MM_calloc (sizeof(H5T_t)))) {\n\
+ HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL,\n\
+ \"memory allocation failed\");\n\
+ }\n\
dt->state = H5T_STATE_IMMUTABLE;\n\
H5F_addr_undef (&(dt->ent.header));\n\
dt->type = H5T_%s;\n\