Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/ntp/dist/lib/isc avoid calling printf %s with N...



details:   https://anonhg.NetBSD.org/src/rev/c92c5623d3bd
branches:  trunk
changeset: 1013858:c92c5623d3bd
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Sep 07 00:48:45 2020 +0000

description:
avoid calling printf %s with NULL.  fix idea from christos.

diffstat:

 external/bsd/ntp/dist/lib/isc/assertions.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r b93837f86731 -r c92c5623d3bd external/bsd/ntp/dist/lib/isc/assertions.c
--- a/external/bsd/ntp/dist/lib/isc/assertions.c        Mon Sep 07 00:47:27 2020 +0000
+++ b/external/bsd/ntp/dist/lib/isc/assertions.c        Mon Sep 07 00:48:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: assertions.c,v 1.6 2020/05/25 20:47:20 christos Exp $  */
+/*     $NetBSD: assertions.c,v 1.7 2020/09/07 00:48:45 mrg Exp $       */
 
 /*
  * Copyright (C) 2004, 2005, 2007-2009  Internet Systems Consortium, Inc. ("ISC")
@@ -94,7 +94,7 @@
                result = "INVARIANT";
                break;
        default:
-               result = NULL;
+               result = "*invalid*";
        }
        return (result);
 }



Home | Main Index | Thread Index | Old Index