]> git.pld-linux.org Git - packages/systemd.git/blame - dont-hash-null-keys.patch
Patch to fix the 'Overwriting existing symlink'
[packages/systemd.git] / dont-hash-null-keys.patch
CommitLineData
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);
This page took 0.028439 seconds and 4 git commands to generate.