[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
This commit is contained in:
Bill Wendling 2001-03-14 16:46:31 -05:00
parent a21f74ce6a
commit bebae0a9e8

View File

@ -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) {