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:
committed by
Marge Bot
parent
522bb08131
commit
c55fc35435
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user