From owner-freebsd-current Tue Nov 19 15:24:09 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA14807 for current-outgoing; Tue, 19 Nov 1996 15:24:09 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id PAA14730 for ; Tue, 19 Nov 1996 15:22:53 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id AAA09883; Wed, 20 Nov 1996 00:21:17 +0100 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA11415; Wed, 20 Nov 1996 00:21:16 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.2/8.6.9) id AAA10772; Wed, 20 Nov 1996 00:14:44 +0100 (MET) From: J Wunsch Message-Id: <199611192314.AAA10772@uriah.heep.sax.de> Subject: Re: Can anyone explain...? To: freebsd-current@FreeBSD.org (FreeBSD-current users) Date: Wed, 20 Nov 1996 00:14:44 +0100 (MET) Cc: wollman@lcs.mit.edu (Garrett Wollman) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <9611191833.AA10264@halloran-eldar.lcs.mit.edu> from Garrett Wollman at "Nov 19, 96 01:33:17 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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. ;-)