diff options
author | Erik Faye-Lund <[email protected]> | 2020-04-15 22:22:27 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-16 14:48:40 +0000 |
commit | c55fc3543537fdc7b402584a076eb87d258b4c51 (patch) | |
tree | 6efbba1488dcbc710be8e9f1d74c4d988b4e2167 /src/util | |
parent | 522bb081314131340804a160d5d53f2fbe9a10be (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4577>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/tests/hash_table/random_entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/tests/hash_table/random_entry.c b/src/util/tests/hash_table/random_entry.c index 4902a999de6..75c4ef652fc 100644 --- a/src/util/tests/hash_table/random_entry.c +++ b/src/util/tests/hash_table/random_entry.c @@ -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; |