From 1af9fe5775012f0a7d6db5eb996bf739f2fcacc9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 15 Nov 2000 12:46:52 -0500 Subject: [svn-r2928] Purpose: Buglet fix Description: Get rid of compiler warnings. The HGOTO_RETURN was returning NULL when it should have returned FAIL. Solution: Swapped the two. Platforms tested: Linux --- src/H5P.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5P.c b/src/H5P.c index 04e68af..49124cd 100644 --- a/src/H5P.c +++ b/src/H5P.c @@ -4915,7 +4915,7 @@ hid_t H5Pget_class_new(hid_t plist_id) /* Increment the outstanding references to the class object */ if(H5P_access_class(pclass,H5P_MOD_INC_REF)<0) - HGOTO_ERROR (H5E_PLIST, H5E_CANTINIT, NULL,"Can't increment class ID ref count"); + HGOTO_ERROR (H5E_PLIST, H5E_CANTINIT, FAIL,"Can't increment class ID ref count"); /* Get an atom for the class */ if ((ret_value = H5I_register(H5I_GENPROP_CLS, pclass))<0) @@ -6283,7 +6283,7 @@ hid_t H5Pget_class_parent(hid_t pclass_id) /* Increment the outstanding references to the class object */ if(H5P_access_class(parent,H5P_MOD_INC_REF)<0) - HGOTO_ERROR (H5E_PLIST, H5E_CANTINIT, NULL,"Can't increment class ID ref count"); + HGOTO_ERROR (H5E_PLIST, H5E_CANTINIT, FAIL,"Can't increment class ID ref count"); /* Get an atom for the class */ if ((ret_value = H5I_register(H5I_GENPROP_CLS, parent))<0) -- cgit v0.12