Source-Changes-HG archive

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

[src/trunk]: src/lib/libmenu * Fixed possible unassigned variable problem.



details:   https://anonhg.NetBSD.org/src/rev/70fd8429107d
branches:  trunk
changeset: 485852:70fd8429107d
user:      blymn <blymn%NetBSD.org@localhost>
date:      Sun May 07 12:14:44 2000 +0000

description:
* Fixed possible unassigned variable problem.

diffstat:

 lib/libmenu/menu.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 100e54ab0f39 -r 70fd8429107d lib/libmenu/menu.c
--- a/lib/libmenu/menu.c        Sun May 07 09:57:46 2000 +0000
+++ b/lib/libmenu/menu.c        Sun May 07 12:14:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: menu.c,v 1.7 2000/05/05 11:28:56 blymn Exp $   */
+/*     $NetBSD: menu.c,v 1.8 2000/05/07 12:14:44 blymn Exp $   */
 
 /*-
  * Copyright (c) 1998-1999 Brett Lymn (blymn%baea.com.au@localhost, brett_lymn%yahoo.com.au@localhost)
@@ -558,6 +558,8 @@
        if (menu->in_init == 1)
                return E_BAD_STATE;
 
+       cur_item = 0;
+       
        for (i = 0; i < menu->item_count; i++) {
                  /* search for first item that matches row - this will be
                     the current item. */



Home | Main Index | Thread Index | Old Index