From: Jim Meyering Date: Mon, 28 Mar 2005 18:16:06 +0000 (+0000) Subject: (print_user): Use NULL, not `0'. X-Git-Tag: CPPI-1_12~1178 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce70c7bdc442c965d60295efa75b10f36004f02a;p=platform%2Fupstream%2Fcoreutils.git (print_user): Use NULL, not `0'. --- diff --git a/src/who.c b/src/who.c index efa4e33c4..c69285fa4 100644 --- a/src/who.c +++ b/src/who.c @@ -1,5 +1,5 @@ /* GNU's who. - Copyright (C) 1992-2004 Free Software Foundation, Inc. + Copyright (C) 1992-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 @@ -370,7 +370,8 @@ print_user (const STRUCT_UTMP *utmp_ent, time_t boottime) if (utmp_ent->ut_host[0]) { 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, sizeof (utmp_ent->ut_host));