Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/rpcinfo Don't assign NULL to a char.



details:   https://anonhg.NetBSD.org/src/rev/6f69b37f337d
branches:  trunk
changeset: 553757:6f69b37f337d
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Oct 21 02:24:59 2003 +0000

description:
Don't assign NULL to a char.

diffstat:

 usr.bin/rpcinfo/rpcinfo.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5f2cb8e502df -r 6f69b37f337d usr.bin/rpcinfo/rpcinfo.c
--- a/usr.bin/rpcinfo/rpcinfo.c Tue Oct 21 02:24:08 2003 +0000
+++ b/usr.bin/rpcinfo/rpcinfo.c Tue Oct 21 02:24:59 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpcinfo.c,v 1.17 2003/04/29 17:55:00 agc Exp $ */
+/*     $NetBSD: rpcinfo.c,v 1.18 2003/10/21 02:24:59 fvdl Exp $        */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -886,7 +886,7 @@
                                        sprintf(p++, ",");
                        }
                        printf("%-10s", buf);
-                       buf[0] = NULL;
+                       buf[0] = 0;
                        for (nl = rs->nlist; nl; nl = nl->next) {
                                strcat(buf, nl->netid);
                                if (nl->next)



Home | Main Index | Thread Index | Old Index