summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Henderson <jhenderson@hdfgroup.org>2019-05-17 15:49:27 (GMT)
committerJordan Henderson <jhenderson@hdfgroup.org>2019-05-17 15:49:27 (GMT)
commit802b2927254b1de163589b1e4eaced47ee81ad07 (patch)
tree756e08f4aa1ae8cbd94f88b4386ca131638d6222 /src
parent04f171d0cb04a900c0fa2398931dc6291840e101 (diff)
downloadhdf5-802b2927254b1de163589b1e4eaced47ee81ad07.zip
hdf5-802b2927254b1de163589b1e4eaced47ee81ad07.tar.gz
hdf5-802b2927254b1de163589b1e4eaced47ee81ad07.tar.bz2
Assign NULL to func_name/file_name/desc error entry pointers when clearing error stack
Diffstat (limited to 'src')
-rw-r--r--src/H5Eint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Eint.c b/src/H5Eint.c
index 7818879..e76db82 100644
--- a/src/H5Eint.c
+++ b/src/H5Eint.c
@@ -883,11 +883,11 @@ H5E__clear_entries(H5E_t *estack, size_t nentries)
/* Release strings */
if(error->func_name)
- H5MM_xfree((void *)error->func_name); /* Casting away const OK - QAK */
+ error->func_name = (const char *) H5MM_xfree((void *)error->func_name); /* Casting away const OK - QAK */
if(error->file_name)
- H5MM_xfree((void *)error->file_name); /* Casting away const OK - QAK */
+ error->file_name = (const char *) H5MM_xfree((void *)error->file_name); /* Casting away const OK - QAK */
if(error->desc)
- H5MM_xfree((void *)error->desc); /* Casting away const OK - QAK */
+ error->desc = (const char *) H5MM_xfree((void *)error->desc); /* Casting away const OK - QAK */
} /* end for */
/* Decrement number of errors on stack */