mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[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:
parent
a21f74ce6a
commit
bebae0a9e8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user