summaryrefslogtreecommitdiffstats
path: root/src/H5E.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-01-11 01:51:42 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-01-11 01:51:42 (GMT)
commit536a32c59be69f9ae75604a31d0ec34c57cf9f00 (patch)
tree605e0c0272cce05f9b8b8ed1799c384c9894ed0e /src/H5E.c
parenta7e0ef996a63b87cc0295b58f37f037c848a6929 (diff)
downloadhdf5-536a32c59be69f9ae75604a31d0ec34c57cf9f00.zip
hdf5-536a32c59be69f9ae75604a31d0ec34c57cf9f00.tar.gz
hdf5-536a32c59be69f9ae75604a31d0ec34c57cf9f00.tar.bz2
C and POSIX call cleanup
Diffstat (limited to 'src/H5E.c')
-rw-r--r--src/H5E.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5E.c b/src/H5E.c
index 170133e..267bd4e 100644
--- a/src/H5E.c
+++ b/src/H5E.c
@@ -1386,7 +1386,7 @@ H5Epush2(hid_t err_stack, const char *file, const char *func, unsigned line,
*/
/* Format the description */
- va_start(ap, fmt);
+ HDva_start(ap, fmt);
va_started = TRUE;
#ifdef H5_HAVE_VASPRINTF
@@ -1402,8 +1402,8 @@ H5Epush2(hid_t err_stack, const char *file, const char *func, unsigned line,
/* If the description doesn't fit into the initial buffer size, allocate more space and try again */
while((desc_len = HDvsnprintf(tmp, (size_t)tmp_len, fmt, ap)) > (tmp_len - 1)) {
/* shutdown & restart the va_list */
- va_end(ap);
- va_start(ap, fmt);
+ HDva_end(ap);
+ HDva_start(ap, fmt);
/* Release the previous description, it's too small */
H5MM_xfree(tmp);
@@ -1421,7 +1421,7 @@ H5Epush2(hid_t err_stack, const char *file, const char *func, unsigned line,
done:
if(va_started)
- va_end(ap);
+ HDva_end(ap);
#ifdef H5_HAVE_VASPRINTF
/* Memory was allocated with HDvasprintf so it needs to be freed
* with HDfree