summaryrefslogtreecommitdiff
path: root/console
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-06-03 01:28:27 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-06-03 01:28:27 +0000
commit9346a1597c86ac046922227b49b8b22facb4da66 (patch)
treef5d2eaa333438450e977371773e19c1033ca6eaf /console
parentd4eabce0ce5508bf31444d1b51f9d74c33d1279b (diff)
2002-06-03 Marcus Brinkmann <marcus@gnu.org>
* console.c (vcons_release): Fix last change.
Diffstat (limited to 'console')
-rw-r--r--console/ChangeLog4
-rw-r--r--console/console.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/console/ChangeLog b/console/ChangeLog
index 6bfbe80d..2922e5d7 100644
--- a/console/ChangeLog
+++ b/console/ChangeLog
@@ -1,3 +1,7 @@
+2002-06-03 Marcus Brinkmann <marcus@gnu.org>
+
+ * console.c (vcons_release): Fix last change.
+
2002-06-02 Marcus Brinkmann <marcus@gnu.org>
* console.c (vcons_lookup): Correct nesting.
diff --git a/console/console.c b/console/console.c
index 0f4ca22e..46dfa406 100644
--- a/console/console.c
+++ b/console/console.c
@@ -248,10 +248,11 @@ vcons_release (vcons_t vcons)
if (vcons->prev)
vcons->prev->next = vcons->next;
+ else
+ vcons->cons->vcons_list = vcons->next;
if (vcons->next)
vcons->next->prev = vcons->prev;
- if (!vcons->prev && !vcons->next)
- vcons->cons->vcons_list = NULL;
+
vcons->cons->vcons_length--;
vcons->cons->refcnt--;
free (vcons);