summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-03-14 21:46:31 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-03-14 21:46:31 (GMT)
commitbebae0a9e80acd49f2165d557ec4b2d7377bdcbc (patch)
treec2ec26d33a93c4043216561791986bbd47ba696e /tools/h5dump
parenta21f74ce6a2b67561bec38281c5328d3e864f534 (diff)
downloadhdf5-bebae0a9e80acd49f2165d557ec4b2d7377bdcbc.zip
hdf5-bebae0a9e80acd49f2165d557ec4b2d7377bdcbc.tar.gz
hdf5-bebae0a9e80acd49f2165d557ec4b2d7377bdcbc.tar.bz2
[svn-r3634] Purpose:
Bug Fix. Description: Kent is correct about the malloc error. It's harmless if it's not needed anyway. Solution: Removed the #ifdef's since all platforms should use this. Platforms tested: Linux
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dump.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c
index c24b2d4..5e42209 100644
--- a/tools/h5dump/h5dump.c
+++ b/tools/h5dump/h5dump.c
@@ -1274,11 +1274,8 @@ dump_all(hid_t group, const char *name, void * op_data)
if (*(int *)op_data != H5G_UNKNOWN && statbuf.type != *(int *) op_data)
goto done;
-#ifdef WIN32
- tmp = malloc(strlen(prefix)+strlen(name)+2);
-#else
- tmp = malloc(strlen(prefix) + strlen(name) + 1);
-#endif
+
+ tmp = malloc(strlen(prefix) + strlen(name) + 2);
strcpy(tmp, prefix);
switch (statbuf.type) {