Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses Fully initialize the structure allocated in ne...



details:   https://anonhg.NetBSD.org/src/rev/6f2c3df6362d
branches:  trunk
changeset: 485241:6f2c3df6362d
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Apr 22 21:14:19 2000 +0000

description:
Fully initialize the structure allocated in new_keymap().

diffstat:

 lib/libcurses/getch.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 3c194d2a4f8a -r 6f2c3df6362d lib/libcurses/getch.c
--- a/lib/libcurses/getch.c     Sat Apr 22 21:03:27 2000 +0000
+++ b/lib/libcurses/getch.c     Sat Apr 22 21:14:19 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getch.c,v 1.22 2000/04/22 14:32:45 blymn Exp $ */
+/*     $NetBSD: getch.c,v 1.23 2000/04/22 21:14:19 thorpej Exp $       */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)getch.c    8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: getch.c,v 1.22 2000/04/22 14:32:45 blymn Exp $");
+__RCSID("$NetBSD: getch.c,v 1.23 2000/04/22 21:14:19 thorpej Exp $");
 #endif
 #endif                                 /* not lint */
 
@@ -352,8 +352,9 @@
                new_map->mapping[i] = -1;       /* no mapping for char */
        }
 
-          /* key array will be allocated when first key is added */
-        
+       /* key array will be allocated when first key is added */
+       new_map->key = NULL;
+
        return new_map;
 }
 



Home | Main Index | Thread Index | Old Index