diff options
Diffstat (limited to 'src/H5Omessage.c')
-rw-r--r-- | src/H5Omessage.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/H5Omessage.c b/src/H5Omessage.c index 3c29c24..38cce08 100644 --- a/src/H5Omessage.c +++ b/src/H5Omessage.c @@ -559,10 +559,8 @@ H5O_msg_read_real(H5F_t *f, hid_t dxpl_id, H5O_t *oh, unsigned type_id, for(idx = 0; idx < oh->nmesgs; idx++) if(type == oh->mesg[idx].type) break; - if(idx == oh->nmesgs) { - + if(idx == oh->nmesgs) HGOTO_ERROR(H5E_OHDR, H5E_NOTFOUND, NULL, "message type not found") - } /* * Decode the message if necessary. If the message is shared then retrieve @@ -579,7 +577,6 @@ H5O_msg_read_real(H5F_t *f, hid_t dxpl_id, H5O_t *oh, unsigned type_id, HGOTO_ERROR(H5E_OHDR, H5E_CANTINIT, NULL, "unable to copy message to user space") done: - FUNC_LEAVE_NOAPI(ret_value) } /* end H5O_msg_read_real() */ |