1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-25 10:50:08 +03:00

hash: Fix use-of-uninitialized-value

Short-lived regression.
This commit is contained in:
Nick Wellnhofer 2023-09-04 16:00:53 +02:00
parent 05c283052d
commit efcaeadc3e

2
hash.c
View File

@ -192,6 +192,8 @@ xmlHashCreate(int size) {
memset(table->table, 0, size * sizeof(xmlHashEntry));
#ifdef HASH_RANDOMIZATION
table->random_seed = xmlRandom();
#else
table->random_seed = 0;
#endif
return(table);
}