hcreate: fix using the uninit value misra issue

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
guoshichao 2024-09-09 15:06:13 +08:00 committed by Xiang Xiao
parent 3e66184f23
commit 78e5fe3473
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ void hdestroy(void)
FAR ENTRY *hsearch(ENTRY item, ACTION action) FAR ENTRY *hsearch(ENTRY item, ACTION action)
{ {
FAR ENTRY *retval; FAR ENTRY *retval = NULL;
hsearch_r(item, action, &retval, &g_htab); hsearch_r(item, action, &retval, &g_htab);