summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-04-29 06:15:06 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-04-29 06:15:06 (GMT)
commit27496ae0c7b8b1be7165d3720711b15c3a2d1288 (patch)
tree0a636cb807906c461dcc36e06548328700f97acb /src
parent2552a2b6d26c9dcaadd9e658276be51070e76f62 (diff)
downloadhdf5-27496ae0c7b8b1be7165d3720711b15c3a2d1288.zip
hdf5-27496ae0c7b8b1be7165d3720711b15c3a2d1288.tar.gz
hdf5-27496ae0c7b8b1be7165d3720711b15c3a2d1288.tar.bz2
[svn-r12313] Purpose:
Code cleanup Description: Clean up a few minor compiler warnings Platforms tested: FreeBSD 4.11 (sleipnir) Linux 2.4/64 (mir)
Diffstat (limited to 'src')
-rw-r--r--src/H5G.c4
-rw-r--r--src/H5HLprivate.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 4ad8593..e66825b 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -2065,7 +2065,7 @@ static herr_t
H5G_link_cb(H5G_loc_t *grp_loc/*in*/, const char *name, const H5O_link_t UNUSED *lnk,
H5G_loc_t *obj_loc, void *_udata/*in,out*/)
{
- char *old_link_name; /* Pointer to hold the old link name */
+ char *old_link_name = NULL; /* Pointer to hold the old link name */
hbool_t old_link_name_set = FALSE; /* Indicate that we've replaced the old link name */
H5G_trav_ud3_t *udata = (H5G_trav_ud3_t *)_udata; /* User data passed in */
herr_t ret_value = SUCCEED; /* Return value */
@@ -2999,7 +2999,7 @@ H5G_unmount(H5G_t *grp)
static herr_t
H5G_copy(H5G_loc_t *src_loc, H5G_loc_t *dst_loc, const char *dst_name, hid_t plist_id)
{
- H5P_genplist_t *gcrt_plist; /* Group create property list created */
+ H5P_genplist_t *gcrt_plist = NULL; /* Group create property list created */
H5P_genplist_t *gcpy_plist; /* Group copy property list created */
hid_t dxpl_id = H5AC_dxpl_id;
H5G_name_t new_path; /* Copied object group hier. path */
diff --git a/src/H5HLprivate.h b/src/H5HLprivate.h
index 445c1a7..6adc2a5 100644
--- a/src/H5HLprivate.h
+++ b/src/H5HLprivate.h
@@ -76,3 +76,4 @@ H5_DLL herr_t H5HL_get_size(H5F_t *f, hid_t dxpl_id, haddr_t addr, size_t *size)
H5_DLL herr_t H5HL_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE * stream, int indent,
int fwidth);
#endif
+