aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-11-24 02:32:11 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-11-24 02:32:11 +0100
commit25282cfe235d3dceecd07ab98e90ce6c2cbde767 (patch)
tree54986111fe3a55c38296cc697044cd0b47481614
parent8187bedcb66203bb35b267dfeaa36984b3f03cc1 (diff)
downloadxK-25282cfe235d3dceecd07ab98e90ce6c2cbde767.tar.gz
xK-25282cfe235d3dceecd07ab98e90ce6c2cbde767.tar.xz
xK-25282cfe235d3dceecd07ab98e90ce6c2cbde767.zip
degesch: fix a segfault-inducing typo in hooks
-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