]> git.pld-linux.org Git - packages/systemd.git/blob - dont-hash-null-keys.patch
- x32 rebuild
[packages/systemd.git] / dont-hash-null-keys.patch
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);
This page took 0.029884 seconds and 3 git commands to generate.