summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-12-15 10:58:17 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-12-15 10:58:17 +0000
commit963caa90309ab1ad59d0f0ac75e44ef20cd6e924 (patch)
treef67de99bf0155012161d9bcda80c45d1253b8956
parentc6a6c1afe19a91af5032017cc31cf00d8fc5ccaa (diff)
downloadlibcss-963caa90309ab1ad59d0f0ac75e44ef20cd6e924.tar.gz
libcss-963caa90309ab1ad59d0f0ac75e44ef20cd6e924.tar.bz2
Attempt to make Coverity understand what's happening. I think this is a little less readable though. #1137923.
-rw-r--r--src/select/hash.c2
1 files changed, 1 insertions, 1 deletions
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;