1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-04 15:49:42 +02:00

(print_entry): Use NULL, not `0'.

This commit is contained in:
Jim Meyering
2005-03-28 18:06:55 +00:00
parent 7ae52d9af9
commit 63a7783403
+3 -2
View File
@@ -1,5 +1,5 @@
/* GNU's pinky.
Copyright (C) 1992-1997, 1999-2004 Free Software Foundation, Inc.
Copyright (C) 1992-1997, 1999-2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -288,7 +288,8 @@ print_entry (const STRUCT_UTMP *utmp_ent)
{
extern char *canon_host ();
char ut_host[sizeof (utmp_ent->ut_host) + 1];
char *host = 0, *display = 0;
char *host = NULL;
char *display = NULL;
/* Copy the host name into UT_HOST, and ensure it's nul terminated. */
strncpy (ut_host, utmp_ent->ut_host, (int) sizeof (utmp_ent->ut_host));