Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/file/dist/src Spell the null pointer as NULL, n...



details:   https://anonhg.NetBSD.org/src/rev/682e551e652f
branches:  trunk
changeset: 791704:682e551e652f
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Nov 28 14:40:00 2013 +0000

description:
Spell the null pointer as NULL, not as nul.

diffstat:

 external/bsd/file/dist/src/compress.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3fceaac90b1c -r 682e551e652f external/bsd/file/dist/src/compress.c
--- a/external/bsd/file/dist/src/compress.c     Thu Nov 28 14:21:31 2013 +0000
+++ b/external/bsd/file/dist/src/compress.c     Thu Nov 28 14:40:00 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compress.c,v 1.6 2013/01/03 23:05:38 christos Exp $    */
+/*     $NetBSD: compress.c,v 1.7 2013/11/28 14:40:00 joerg Exp $       */
 
 /*
  * Copyright (c) Ian F. Darwin 1986-1995.
@@ -40,7 +40,7 @@
 #if 0
 FILE_RCSID("@(#)$File: compress.c,v 1.70 2012/11/07 17:54:48 christos Exp $")
 #else
-__RCSID("$NetBSD: compress.c,v 1.6 2013/01/03 23:05:38 christos Exp $");
+__RCSID("$NetBSD: compress.c,v 1.7 2013/11/28 14:40:00 joerg Exp $");
 #endif
 #endif
 
@@ -487,7 +487,7 @@
 #endif
                        free(*newch);
                        n = 0;
-                       newch[0] = '\0';
+                       *newch = NULL;
                        goto err;
                } else {
                        n = r;



Home | Main Index | Thread Index | Old Index