Commit 1c9e4d15 authored by Didier 'Ptitjes's avatar Didier 'Ptitjes Committed by Jürg Billeter
Browse files

Initialize 'next' variables



Fixes bug 588758.
Signed-off-by: default avatarDidier 'Ptitjes <ptitjes@free.fr>
parent 64d44152
......@@ -156,7 +156,7 @@ public class Gee.HashMap<K,V> : Object, Map<K,V> {
for (int i = 0; i < _array_size; i++) {
Node<K,V> node;
Node<K,V> next;
Node<K,V> next = null;
for (node = (owned) _nodes[i]; node != null; node = (owned) next) {
next = (owned) node.next;
uint hash_val = node.key_hash % new_array_size;
......
......@@ -140,7 +140,7 @@ public class Gee.HashSet<G> : Object, Iterable<G>, Collection<G>, Set<G> {
for (int i = 0; i < _array_size; i++) {
Node<G> node;
Node<G> next;
Node<G> next = null;
for (node = (owned) _nodes[i]; node != null; node = (owned) next) {
next = (owned) node.next;
uint hash_val = node.key_hash % new_array_size;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment