Source-Changes-HG archive

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

[src/trunk]: src/lib/libterm area is allowed to be NULL, so don't _DIAGASSERT...



details:   https://anonhg.NetBSD.org/src/rev/a1bc2875965e
branches:  trunk
changeset: 486139:a1bc2875965e
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun May 14 01:14:29 2000 +0000

description:
area is allowed to be NULL, so don't _DIAGASSERT it.

diffstat:

 lib/libterm/termcap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a1958bededd0 -r a1bc2875965e lib/libterm/termcap.c
--- a/lib/libterm/termcap.c     Sat May 13 23:43:06 2000 +0000
+++ b/lib/libterm/termcap.c     Sun May 14 01:14:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: termcap.c,v 1.28 2000/05/12 15:25:25 christos Exp $    */
+/*     $NetBSD: termcap.c,v 1.29 2000/05/14 01:14:29 lukem Exp $       */
 
 /*
  * Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)termcap.c  8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: termcap.c,v 1.28 2000/05/12 15:25:25 christos Exp $");
+__RCSID("$NetBSD: termcap.c,v 1.29 2000/05/14 01:14:29 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -309,7 +309,7 @@
 
        _DIAGASSERT(info != NULL);
        _DIAGASSERT(id != NULL);
-       _DIAGASSERT(area != NULL);
+       /* area may be NULL */
 
 
        if ((i = cgetstr(info->info, id, &s)) < 0) {



Home | Main Index | Thread Index | Old Index