diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2011-05-23 17:43:37 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2011-05-23 17:43:37 (GMT) |
commit | a01f323d4c6a10e34ba2975c964edde1c6070b95 (patch) | |
tree | cd473221a8047b733059ae31ff17a3f386a17aa4 /tools/h5dump | |
parent | 700b935f7be55fdcbd96b6ce515a2e55d32c350f (diff) | |
download | hdf5-a01f323d4c6a10e34ba2975c964edde1c6070b95.zip hdf5-a01f323d4c6a10e34ba2975c964edde1c6070b95.tar.gz hdf5-a01f323d4c6a10e34ba2975c964edde1c6070b95.tar.bz2 |
[svn-r20893] Description:
Bring r20885 from trunk to 1.8 branch:
r20340:
Address coverity issue 248. Set freed pointer to NULL if realloc fails, then check for NULL before attempting to close array of handles stored in memory addressed by pointer.
r20341:
Added initialization udata.path = NULL; udata.visited = NULL; to prevent unintialized use after done: label.
Do C-style initialization AFTER all variable definitions.
r20342:
Fix valgrind error in H5DUMP-XML-tall.h5
r20343:
Addressed Coverity issue 591 - check the return value of H5S_SELECT_ITER_RELEASE.
r20344:
Added initialization udata.path = NULL; to prevent uninitialized used after done: label
r20347:
Purpose: Fix memory leak in overhead.c
Description: Fixed leak in test() in overhead.c where array "had" was never
freed.
r20348:
Addressed Coverity issue 705 - added prototype for resize_configs_are_equal to cache_common.h.
r20392:
Purpose: Fix coverity issues 1677 and 1678
Description: Added return value checking for 4 funciton calls in
H5tools_get_symlink_info().
r20394:
Purpose: Fix coverity issues 1674 and 1675
Description: Modified H5Epush2() and H5E_printf_stack() to keep track of whether
va_start() has been called, and to call va_end() at the end if so.
r20395:
Should be H5MM_calloc(count * sizeof(void*)). Fixed --gh
r20396:
Should be H5MM_calloc(count * sizeof(void*)). Fixed. --gh
Tested on:
Mac OSX/32 10.6.7 (amazon) w/debug & production
(h5committested on branch)
Diffstat (limited to 'tools/h5dump')
-rw-r--r-- | tools/h5dump/h5dump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index d4d9543..23ab0a5 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -6217,7 +6217,7 @@ xml_dump_group(hid_t gid, const char *name) H5Oget_info(gid, &oinfo); if(oinfo.rc > 1) { - obj_t *found_obj; /* Found object */ + obj_t *found_obj; /* Found object */ /* Group with more than one link to it... */ found_obj = search_obj(group_table, oinfo.addr); @@ -6323,7 +6323,7 @@ xml_dump_group(hid_t gid, const char *name) /* iterate through all the links */ - if( (sort_by == H5_INDEX_CRT_ORDER) && (crt_order_flags & H5P_CRT_ORDER_TRACKED)) + if((sort_by == H5_INDEX_CRT_ORDER) && (crt_order_flags & H5P_CRT_ORDER_TRACKED)) H5Literate(gid, sort_by, sort_order, NULL, dump_all_cb, NULL); else H5Literate(gid, H5_INDEX_NAME, sort_order, NULL, dump_all_cb, NULL); @@ -6407,7 +6407,7 @@ xml_dump_group(hid_t gid, const char *name) if(isRoot) HDfprintf(stdout, "</%sRootGroup>\n", xmlnsprefix); else - HDfprintf(stdout, "</%sGroup>\n" , xmlnsprefix); + HDfprintf(stdout, "</%sGroup>\n", xmlnsprefix); if(par) free(par); if(tmp) |