diff options
Diffstat (limited to 'test/h5test.c')
-rw-r--r-- | test/h5test.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/h5test.c b/test/h5test.c index 47102d4..b37409a 100644 --- a/test/h5test.c +++ b/test/h5test.c @@ -1237,10 +1237,9 @@ h5_set_info_object(void) valp++; /* copy key/value pair into temporary buffer */ - len = HDstrcspn(valp, ";"); - next = &valp[len]; - if (NULL == (key_val = (char *)HDcalloc(1, len + 1))) - return -1; + len = strcspn(valp, ";"); + next = &valp[len]; + key_val = (char *)HDcalloc(1, len + 1); /* increment the next pointer past the terminating semicolon */ if (*next == ';') |