mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
hcreate: fix using the uninit value misra issue
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user