mesa/main: avoid null access in format_array_table_init()
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Fri, 20 Mar 2015 13:40:26 +0000 (15:40 +0200)
committerJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Thu, 11 Jun 2015 10:17:11 +0000 (13:17 +0300)
commit56e9f3b493a8677e60e4473ca0faf0e3d1a79888
treefa713415523b77b617b73bdb97cd4876f1850c6c
parentfd00c738c08e54c9dfdc195e59f780f30d2f9e07
mesa/main: avoid null access in format_array_table_init()

If _mesa_hash_table_create failed we'd get null pointer. Report
error and go away.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/formats.c