Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/menuc new_menu: add missing initializations - we mig...



details:   https://anonhg.NetBSD.org/src/rev/f3d7a2ffa666
branches:  trunk
changeset: 450403:f3d7a2ffa666
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Apr 12 15:47:41 2019 +0000

description:
new_menu: add missing initializations - we might be using a previously
freed menu entry which has not been zeroed.

diffstat:

 usr.bin/menuc/menu_sys.def |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r b1ccd2103991 -r f3d7a2ffa666 usr.bin/menuc/menu_sys.def
--- a/usr.bin/menuc/menu_sys.def        Fri Apr 12 15:12:29 2019 +0000
+++ b/usr.bin/menuc/menu_sys.def        Fri Apr 12 15:47:41 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: menu_sys.def,v 1.67 2019/02/25 20:47:37 martin Exp $   */
+/*     $NetBSD: menu_sys.def,v 1.68 2019/04/12 15:47:41 martin Exp $   */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -879,6 +879,10 @@
 #endif
        m->opts = opts;
        m->numopts = numopts;
+       m->cursel = 0;
+       m->topline = 0;
+       m->mw = NULL;
+       m->sv_mw = NULL;
        m->x = x;
        m->y = y;
        m->h = h;



Home | Main Index | Thread Index | Old Index