lib: Always set errno in hcreate_r
authorSean Anderson <seanga2@gmail.com>
Wed, 24 Jun 2020 10:41:15 +0000 (06:41 -0400)
committerAndes <uboot@andestech.com>
Wed, 1 Jul 2020 07:01:21 +0000 (15:01 +0800)
commit60ffcf218fb2ed73dac1bd44ef0d45661b7577db
tree23f672eb7d4c63c8e7be92689dee4256a5829cec
parent038b13ee8134ba755a323732f3b2b838b9dc17a4
lib: Always set errno in hcreate_r

This could give a confusing error message if it failed and didn't set
errno.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
lib/hashtable.c