From 963caa90309ab1ad59d0f0ac75e44ef20cd6e924 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 15 Dec 2013 10:58:17 +0000 Subject: Attempt to make Coverity understand what's happening. I think this is a little less readable though. #1137923. --- src/select/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/select/hash.c b/src/select/hash.c index 249aeb6..6fc08d7 100644 --- a/src/select/hash.c +++ b/src/select/hash.c @@ -856,9 +856,9 @@ css_error _insert_into_chain(css_selector_hash *ctx, hash_entry *head, #endif if (prev == NULL) { + entry->next = entry; hash_entry temp = *entry; *entry = *head; - temp.next = entry; *head = temp; } else { entry->next = prev->next; -- cgit v1.2.3