bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Small console fixup


From: Samuel Thibault
Subject: Re: Small console fixup
Date: Mon, 23 Jan 2006 23:01:08 +0100
User-agent: Mutt/1.5.9i-nntp

Marco Gerards, le Mon 23 Jan 2006 22:52:58 +0100, a écrit :
> Can you please write a changelog entry so it can be committed?

Ah, sorry:

[hurd]/console/ChangeLog
2006-01-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>

        * console.c (main): Check malloc() call result instead of
        malloc itself.

--- console/console-orig.c      2006-01-23 20:39:56.000000000 +0100
+++ console/console.c   2006-01-23 20:40:03.000000000 +0100
@@ -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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]