diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2018-02-14 15:40:39 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2018-02-14 15:40:39 (GMT) |
commit | 300b219d43b434631d334004ecc1e84be1c51d74 (patch) | |
tree | 358289a13c083bbface66feacbac989834602de1 /test/ohdr.c | |
parent | c9475f57e580ed7dc9efea3390623ee48cba2507 (diff) | |
download | hdf5-300b219d43b434631d334004ecc1e84be1c51d74.zip hdf5-300b219d43b434631d334004ecc1e84be1c51d74.tar.gz hdf5-300b219d43b434631d334004ecc1e84be1c51d74.tar.bz2 |
Fixed DT failure
Description:
Added a missing return statement to a non-void function.
Platforms tested:
Linux/64 (jelly)
Linux/32 (jam)
Darwin (osx1010test)
Diffstat (limited to 'test/ohdr.c')
-rw-r--r-- | test/ohdr.c | 13 |
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 |