From bebae0a9e80acd49f2165d557ec4b2d7377bdcbc Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 14 Mar 2001 16:46:31 -0500 Subject: [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 --- tools/h5dump/h5dump.c | 7 ++----- 1 file 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) { -- cgit v0.12