diff options
author | David Young <dyoung@hdfgroup.org> | 2019-11-13 17:39:24 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:17:27 (GMT) |
commit | 395d4f0716bc88b1dff17460b027580539780e7e (patch) | |
tree | d7f5e1f14c165a4b7cebe4dace122996a933b237 /src/H5SL.c | |
parent | 1f7fdfe14cf47fbb7e09dd389df1005e3b05b2cc (diff) | |
download | hdf5-395d4f0716bc88b1dff17460b027580539780e7e.zip hdf5-395d4f0716bc88b1dff17460b027580539780e7e.tar.gz hdf5-395d4f0716bc88b1dff17460b027580539780e7e.tar.bz2 |
Initialize a couple of return values to avoid used-before-set warnings.
Diffstat (limited to 'src/H5SL.c')
-rw-r--r-- | src/H5SL.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1394,7 +1394,7 @@ H5SL_search(H5SL_t *slist, const void *key) { H5SL_node_t *x; /* Current node to examine */ uint32_t hashval = 0; /* Hash value for key */ - void *ret_value; /* Return value */ + void *ret_value = NULL; /* Return value */ FUNC_ENTER_NOAPI_NOINIT_NOERR @@ -1695,7 +1695,7 @@ H5SL_find(H5SL_t *slist, const void *key) { H5SL_node_t *x; /* Current node to examine */ uint32_t hashval = 0; /* Hash value for key */ - H5SL_node_t *ret_value; /* Return value */ + H5SL_node_t *ret_value = NULL; /* Return value */ FUNC_ENTER_NOAPI_NOINIT_NOERR |