]>
Commit | Line | Data |
---|---|---|
5fc98723 JR |
1 | --- systemd-206/src/shared/hashmap.c~ 2013-07-22 00:43:28.172182934 +0200 |
2 | +++ systemd-206/src/shared/hashmap.c 2013-08-16 17:28:17.374796716 +0200 | |
3 | @@ -272,9 +272,11 @@ | |
4 | assert(h); | |
5 | assert(e); | |
6 | ||
7 | - hash = h->hash_func(e->key) % NBUCKETS; | |
8 | + if (e->key) { | |
9 | + hash = h->hash_func(e->key) % NBUCKETS; | |
10 | ||
11 | - unlink_entry(h, e, hash); | |
12 | + unlink_entry(h, e, hash); | |
13 | + } | |
14 | ||
15 | if (h->from_pool) | |
16 | deallocate_tile(&first_entry_tile, e); |