Skip to content

Commit

Permalink
2006-01-23 Samuel Thibault <[email protected]>
Browse files Browse the repository at this point in the history
	* console.c (main): Check CONS instead of MALLOC.
  • Loading branch information
Marcus Brinkmann committed Jan 23, 2006
1 parent bb29133 commit 78be7c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions console/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2006-01-23 Samuel Thibault <[email protected]>

* console.c (main): Check CONS instead of MALLOC.

* input.c (input_create): Fix arguments order of iconv_open()
call.

Expand Down
2 changes: 1 addition & 1 deletion console/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 78be7c9

Please sign in to comment.