summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
Diffstat (limited to 'hl')
-rw-r--r--hl/src/H5DS.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hl/src/H5DS.c b/hl/src/H5DS.c
index 66cb7b4..214769c 100644
--- a/hl/src/H5DS.c
+++ b/hl/src/H5DS.c
@@ -1280,7 +1280,7 @@ ssize_t H5DSget_label(hid_t did,
copy_len = MIN(size-1, nbytes);
/* copy all/some of the name */
- if( label && copy_len>0) {
+ if( label ) {
HDmemcpy(label, buf[idx], copy_len);
/* terminate the string */
@@ -1404,7 +1404,7 @@ ssize_t H5DSget_scale_name(hid_t did,
copy_len = MIN(size-1, nbytes);
/* copy all/some of the name */
- if (name && copy_len>0) {
+ if (name) {
HDmemcpy(name, buf, copy_len);
/* terminate the string */