hcreate: fix using the uninit value misra issue
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
parent
3e66184f23
commit
78e5fe3473
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue