Source-Changes-HG archive

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

[src/trunk]: src/libexec/ld.elf_so Pointers are NULL. Characters are '\0'.



details:   https://anonhg.NetBSD.org/src/rev/455fafbf8d96
branches:  trunk
changeset: 513832:455fafbf8d96
user:      eeh <eeh%NetBSD.org@localhost>
date:      Tue Aug 14 20:13:56 2001 +0000

description:
Pointers are NULL.  Characters are '\0'.

diffstat:

 libexec/ld.elf_so/xprintf.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6797b0c69f9e -r 455fafbf8d96 libexec/ld.elf_so/xprintf.c
--- a/libexec/ld.elf_so/xprintf.c       Tue Aug 14 14:04:35 2001 +0000
+++ b/libexec/ld.elf_so/xprintf.c       Tue Aug 14 20:13:56 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xprintf.c,v 1.7 2000/07/03 03:32:57 matt Exp $  */
+/*     $NetBSD: xprintf.c,v 1.8 2001/08/14 20:13:56 eeh Exp $   */
 
 /*
  * Copyright 1996 Matt Thomas <matt%3am-software.com@localhost>
@@ -64,7 +64,7 @@
        char *const ep = buf + buflen - 4;
        int size;
 
-       while (*fmt != NULL && bp < ep) {
+       while (*fmt != '\0' && bp < ep) {
                switch (*fmt) {
                case '\\':{
                        if (fmt[1] != '\0')



Home | Main Index | Thread Index | Old Index