summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/degesch.c b/degesch.c
index 21be937..9b47373 100644
--- a/degesch.c
+++ b/degesch.c
@@ -1413,7 +1413,7 @@ hook_insert (struct hook *list, struct hook *item)
// Otherwise fast-forward to the last entry that precedes us
struct hook *before = list;
- while (before->next && before->next->priority < item->next->priority)
+ while (before->next && before->next->priority < item->priority)
before = before->next;
// And link ourselves in between it and its successor