summaryrefslogtreecommitdiff
path: root/src/pinky.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-03-28 18:06:55 +0000
committerJim Meyering <jim@meyering.net>2005-03-28 18:06:55 +0000
commit63a7783403570ab22789f3bace53b16c8a729a2f (patch)
tree3e31ffd44957935b0a8fefdbba550eb410d5e0f4 /src/pinky.c
parent7ae52d9af930819a0e8cba8a179b2bddd529940f (diff)
downloadcoreutils-63a7783403570ab22789f3bace53b16c8a729a2f.tar.xz
(print_entry): Use NULL, not `0'.
Diffstat (limited to 'src/pinky.c')
-rw-r--r--src/pinky.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pinky.c b/src/pinky.c
index 8aa1d42d9..06450e229 100644
--- a/src/pinky.c
+++ b/src/pinky.c
@@ -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));