summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2018-02-14 15:54:43 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2018-02-14 15:54:43 (GMT)
commite562ffc03f8d21c664155c9972ed3147adbe8ad1 (patch)
tree26436d44addf26463a4e6c113bfb405048070878
parent66ea3b8fb9fdff0a0ffa6ffd318ad5fc2c9a8f4b (diff)
parent2ad0ddaa3e62b35d454dfb61db06d8ad90c2e7a8 (diff)
downloadhdf5-e562ffc03f8d21c664155c9972ed3147adbe8ad1.zip
hdf5-e562ffc03f8d21c664155c9972ed3147adbe8ad1.tar.gz
hdf5-e562ffc03f8d21c664155c9972ed3147adbe8ad1.tar.bz2
Merge pull request #6 in ~VCHOI/my_hdf5_fork from ~BMRIBLER/version_bounds_bmr:bugfix/version_bounds to develop
Fixed daily test failure * commit '2ad0ddaa3e62b35d454dfb61db06d8ad90c2e7a8': Fixed DT failure Description: Added a missing return statement to a non-void function. Platforms tested: Linux/64 (jelly) Linux/32 (jam) Darwin (osx1010test)
-rw-r--r--test/ohdr.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/ohdr.c b/test/ohdr.c
index 43346a5..e886bf9 100644
--- a/test/ohdr.c
+++ b/test/ohdr.c
@@ -745,7 +745,7 @@ char *version_string(H5F_libver_t libver)
{
char *str = NULL;
- str = (char *) malloc(20 * sizeof(char));
+ str = (char *) HDmalloc(20);
if (str == NULL)
{
fprintf(stderr, "Allocation failed\n");
@@ -772,6 +772,9 @@ char *version_string(H5F_libver_t libver)
sprintf(str, "%ld", (long)libver);
break;
} /* end switch */
+
+ /* Return the formed version bound string */
+ return(str);
} /* end of version_string */
@@ -780,12 +783,16 @@ char *version_string(H5F_libver_t libver)
*
* Purpose: Exercise private object header behavior and routines
*
- * Return: Success: 0
- * Failure: 1
+ * Return: Success: 0
+ * Failure: 1
*
* Programmer: Robb Matzke
* Tuesday, November 24, 1998
*
+ * Modification:
+ * - Added loop of combinations of low/high library format bounds
+ * (BMR, Feb 2018)
+ *
*-------------------------------------------------------------------------
*/
int