summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-12-10 20:40:33 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-12-10 20:40:33 +0000
commita3e035495c07bdcd55e5cc5e5019256a372041dc (patch)
treee3d51f4d91cd9efebeedfb175a49ee020ef92eec
parent5d60494b8917263de8ecdfc984053f91d7248454 (diff)
2002-12-10 Marcus Brinkmann <marcus@gnu.org>
* console.c (main): Don't use err without setting it.
-rw-r--r--console/ChangeLog4
-rw-r--r--console/console.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/console/ChangeLog b/console/ChangeLog
index d82afdd8..b48b5943 100644
--- a/console/ChangeLog
+++ b/console/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-10 Marcus Brinkmann <marcus@gnu.org>
+
+ * console.c (main): Don't use err without setting it.
+
2002-10-10 Marcus Brinkmann <marcus@gnu.org>
* hurd.ti (cub1): Change from \E[D to ^H.
diff --git a/console/console.c b/console/console.c
index 2969f8f8..e67ba62e 100644
--- a/console/console.c
+++ b/console/console.c
@@ -1963,7 +1963,7 @@ main (int argc, char **argv)
cons->node = netfs_root_node;
cons->underlying = netfs_startup (bootstrap, O_READ);
if (cons->underlying == MACH_PORT_NULL)
- error (4, err, "Cannot get underlying node");
+ error (4, 0, "Cannot get underlying node");
err = io_stat (cons->underlying, &ul_stat);
if (err)