Module Name:    src
Committed By:   martin
Date:           Fri Apr 12 15:47:41 UTC 2019

Modified Files:
        src/usr.bin/menuc: menu_sys.def

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


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/usr.bin/menuc/menu_sys.def

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/menuc/menu_sys.def
diff -u src/usr.bin/menuc/menu_sys.def:1.67 src/usr.bin/menuc/menu_sys.def:1.68
--- src/usr.bin/menuc/menu_sys.def:1.67	Mon Feb 25 20:47:37 2019
+++ src/usr.bin/menuc/menu_sys.def	Fri Apr 12 15:47:41 2019
@@ -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 @@ new_menu(const char *title, menu_ent *op
 #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;

Reply via email to