summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--src/linkedlist.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 57706d2..ac91797 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2003-02-22 Shawn Betts <sabetts@sfu.ca>
+ * src/linkedlist.h (list_direction_entry): no longer returns NULL
+ if there is only one element in the list. Instead, returns the
+ same element again and again.
+
* src/actions.c (cmd_number): use list delete entry macro
(cmd_number): likewise
(cmd_escape): use list looping macro
diff --git a/src/linkedlist.h b/src/linkedlist.h
index 4f07927..d36f07f 100644
--- a/src/linkedlist.h
+++ b/src/linkedlist.h
@@ -269,7 +269,6 @@ static inline void list_splice_init(struct list_head *list,
typeof(pos) ret = NULL; \
struct list_head *a_head = head; \
if (pos->member.direction == a_head) { \
- if (a_head->direction != &pos->member) \
ret = list_entry(a_head->direction, \
typeof(*pos), member); \
} else { \