util/tests: initialize variable

This just silences a compiler-warning about a potentially uninitialized
variable. It's not uninitialized, but it's a bit hard for the compiler
to see. So let's just initialize it to zero.

Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4577>
This commit is contained in:
Erik Faye-Lund 2020-04-15 22:22:27 +02:00 committed by Marge Bot
parent 522bb08131
commit c55fc35435

View file

@ -58,7 +58,7 @@ main(int argc, char **argv)
struct hash_table *ht;
struct hash_entry *entry;
uint32_t keys[SIZE];
uint32_t i, random_value;
uint32_t i, random_value = 0;
(void) argc;
(void) argv;