diff options
Diffstat (limited to 'console/console.c')
-rw-r--r-- | console/console.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |