fix: initialise key to avoid undefined behaviour (#2984)

This commit is contained in:
Piotr Idzik
2025-08-18 18:17:45 +02:00
committed by GitHub
parent b30bdd30bf
commit c917fc4560

View File

@@ -98,7 +98,7 @@ int hash_search(int key, int* counter) { // Hash lookup function
/** main function */
int main() {
link p;
int key, index, i, counter; // Key is the value to be found
int key = 0, index, i, counter; // Key is the value to be found
index = 0;
// You can write the input mode here