changeset: 2444:b2bc0a877017
tag: tip
user: Ben Willard <benwillard_AT_gmail.com>
date: Sat Apr 11 17:02:54 2009 -0400
files: cmd/menu/history.c
description:
Fix a segfault in wimenu when doing a history dump
diff -r 5199ba1fbe68 -r b2bc0a877017 cmd/menu/history.c
--- a/cmd/menu/history.c Fri Apr 03 18:59:23 2009 -0400
+++ b/cmd/menu/history.c Sat Apr 11 17:02:54 2009 -0400
@@ -8,8 +8,10 @@
static void
splice(Item *i) {
- i->next->prev = i->prev;
- i->prev->next = i->next;
+ if(i->next != nil)
+ i->next->prev = i->prev;
+ if(i->prev != nil)
+ i->prev->next = i->next;
}
char*
Received on Sat Apr 11 2009 - 21:46:54 UTC
This archive was generated by hypermail 2.2.0 : Sat Apr 11 2009 - 21:48:04 UTC