summaryrefslogtreecommitdiffstats
path: root/tools/src/h5copy
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-02-14 22:14:48 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-02-14 22:14:48 (GMT)
commita77a08b02fb31e87f451a39640e4376e49878097 (patch)
treead0cb9089dcad158b20131ccf566a122cdb92ee2 /tools/src/h5copy
parent9adb74e41b0e6870991267a2beac9bba3c8de7f8 (diff)
downloadhdf5-a77a08b02fb31e87f451a39640e4376e49878097.zip
hdf5-a77a08b02fb31e87f451a39640e4376e49878097.tar.gz
hdf5-a77a08b02fb31e87f451a39640e4376e49878097.tar.bz2
HDFFV-10384 Add optional arg to enable-error-stack
Diffstat (limited to 'tools/src/h5copy')
-rw-r--r--tools/src/h5copy/h5copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/h5copy/h5copy.c b/tools/src/h5copy/h5copy.c
index 1d15d12..1800810 100644
--- a/tools/src/h5copy/h5copy.c
+++ b/tools/src/h5copy/h5copy.c
@@ -293,7 +293,7 @@ main (int argc, const char *argv[])
break;
case 'E':
- enable_error_stack = TRUE;
+ enable_error_stack = 1;
break;
default:
@@ -330,7 +330,7 @@ main (int argc, const char *argv[])
leave(EXIT_FAILURE);
}
- if (enable_error_stack) {
+ if (enable_error_stack > 0) {
H5Eset_auto2(H5E_DEFAULT, func, edata);
H5Eset_auto2(H5tools_ERR_STACK_g, tools_func, tools_edata);
}