Source-Changes-HG archive

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

[src/trunk]: src/lib/libterminfo Use an empty string, not a null pointer for ...



details:   https://anonhg.NetBSD.org/src/rev/f5a5f38011e0
branches:  trunk
changeset: 791449:f5a5f38011e0
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Nov 18 20:51:03 2013 +0000

description:
Use an empty string, not a null pointer for nullname.

diffstat:

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

diffs (27 lines):

diff -r fc8c3895e76f -r f5a5f38011e0 lib/libterminfo/curterm.c
--- a/lib/libterminfo/curterm.c Mon Nov 18 20:03:02 2013 +0000
+++ b/lib/libterminfo/curterm.c Mon Nov 18 20:51:03 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: curterm.c,v 1.9 2013/06/07 13:16:18 roy Exp $ */
+/* $NetBSD: curterm.c,v 1.10 2013/11/18 20:51:03 joerg Exp $ */
 
 /*
  * Copyright (c) 2009, 2011 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: curterm.c,v 1.9 2013/06/07 13:16:18 roy Exp $");
+__RCSID("$NetBSD: curterm.c,v 1.10 2013/11/18 20:51:03 joerg Exp $");
 
 #include <assert.h>
 #include <stdlib.h>
@@ -151,7 +151,7 @@
        return __UNCONST(cur_term->name);
 }
 
-static const char * nullname = '\0';
+static const char * nullname = "";
 
 char *
 longname(void)



Home | Main Index | Thread Index | Old Index