diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2006-01-23 22:19:13 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2006-01-23 22:19:13 +0000 |
commit | 78be7c99f552ad5f4c6f0c85158a1131aeaac580 (patch) | |
tree | aebbc35f77665ad4fb50e46bd515000e5cdafd4b /console | |
parent | bb291339dc3ae5bddcefd4b11839f2f520c5e40e (diff) | |
download | hurd-78be7c99f552ad5f4c6f0c85158a1131aeaac580.tar.gz hurd-78be7c99f552ad5f4c6f0c85158a1131aeaac580.tar.bz2 hurd-78be7c99f552ad5f4c6f0c85158a1131aeaac580.zip |
2006-01-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
* console.c (main): Check CONS instead of MALLOC.
Diffstat (limited to 'console')
-rw-r--r-- | console/ChangeLog | 2 | ||||
-rw-r--r-- | console/console.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/console/ChangeLog b/console/ChangeLog index a67022b2..4a7ad713 100644 --- a/console/ChangeLog +++ b/console/ChangeLog @@ -1,5 +1,7 @@ 2006-01-23 Samuel Thibault <samuel.thibault@ens-lyon.org> + * console.c (main): Check CONS instead of MALLOC. + * input.c (input_create): Fix arguments order of iconv_open() call. diff --git a/console/console.c b/console/console.c index 3c8acb81..118787eb 100644 --- a/console/console.c +++ b/console/console.c @@ -1999,7 +1999,7 @@ main (int argc, char **argv) struct netnode root_nn = { vcons: 0 }; cons = malloc (sizeof (struct cons)); - if (!malloc) + if (!cons) error (1, ENOMEM, "Cannot create console structure"); mutex_init (&cons->lock); cons->encoding = NULL; |