Date: Wed, 20 Nov 1996 00:14:44 +0100 (MET) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-current@FreeBSD.org (FreeBSD-current users) Cc: wollman@lcs.mit.edu (Garrett Wollman) Subject: Re: Can anyone explain...? Message-ID: <199611192314.AAA10772@uriah.heep.sax.de> In-Reply-To: <9611191833.AA10264@halloran-eldar.lcs.mit.edu> from Garrett Wollman at "Nov 19, 96 01:33:17 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
As Garrett Wollman wrote: > #0 0x802284e in dialog_menu (title=0x2821 "", prompt=0x2811 "", height=17, > width=37, menu_height=10, cnt=-10, it=0x4208, result=0x0, ch=0xefbfd890, > sc=0xefbfd88c) at /usr/wd1/src/gnu/lib/libdialog/menubox.c:163 > 163 print_item(menu, items[(scroll+i)*2], items[(scroll+i)*2 + 1], i, i == choice, DREF(ditems, scroll + i)); > > (My libdialog has debugging symbols in it (finally!).) Well, copying over menubox.c, and linking it locally was probably much quicker than whacking the entire lib with debugging symbols. :) > If anyone wants to debug this, I'll happily send along a copy of the > zone.tab file which you'll need in order to run the program. Well, this was fairly simple to debug... `scroll' looked awfully like an uninitialized variable. Actually, both, ch and sc were not initialized by the caller. Since your main() is not interested in the return values at all, it's perfectly legal to kill these dummy variables, and pass NULL down to dialog_menu(). Commit to follow... Btw., i noticed that my timezone name has changed from MET to CET. Is this official policy now? -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611192314.AAA10772>