summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2006-08-24 15:05:24 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2006-08-24 15:05:24 (GMT)
commita03c1f742db762e7d7b50dca12192b7f9500ab88 (patch)
tree6787745d869ce15173abaf146f4af4408ff672ee /src/H5F.c
parent26f511b7619d1f21f11b89bfc14981e32c66b54d (diff)
downloadhdf5-a03c1f742db762e7d7b50dca12192b7f9500ab88.zip
hdf5-a03c1f742db762e7d7b50dca12192b7f9500ab88.tar.gz
hdf5-a03c1f742db762e7d7b50dca12192b7f9500ab88.tar.bz2
[svn-r12625] Make sure that a return value in H5Fget_intent is initialized correctly.
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5F.c b/src/H5F.c
index cb24a4a..40fc45f 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -2750,7 +2750,7 @@ herr_t
H5Fget_intent(hid_t file_id, unsigned *intent_flags)
{
H5F_t * file = NULL;
- herr_t ret_value;
+ herr_t ret_value=SUCCEED;
FUNC_ENTER_API(H5Fget_intent, FAIL)
if (NULL==(file=H5I_object_verify(file_id, H5I_FILE)))