Date: Mon, 10 Oct 2005 12:40:21 GMT From: Vasil Dimov <vd@datamax.bg> To: freebsd-amd64@FreeBSD.org Subject: Re: amd64/84652: kbdmap -r dumps core Message-ID: <200510101240.j9ACeLrN071729@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR amd64/84652; it has been noted by GNATS. From: Vasil Dimov <vd@datamax.bg> To: bug-followup@FreeBSD.org Cc: andreas_eder@gmx.net Subject: Re: amd64/84652: kbdmap -r dumps core Date: Mon, 10 Oct 2005 15:35:00 +0300 This problem is not amd64 specific, instead it should be in the `bin' category. parse_args() uses font_current before it is initialized. --- kbdmap.c-r.diff begins here --- --- usr.sbin/kbdmap/kbdmap.c.orig Mon Oct 10 15:13:05 2005 +++ usr.sbin/kbdmap/kbdmap.c Mon Oct 10 15:11:50 2005 @@ -823,12 +823,12 @@ program = extract_name(argv[0]); - /* Parse command line arguments */ - parse_args(argc, argv); - font_current = get_font(); if (font_current == NULL) font_current = font_default; + + /* Parse command line arguments */ + parse_args(argc, argv); if (strcmp(program, "kbdmap")) dir = fontdir; --- kbdmap.c-r.diff ends here ---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510101240.j9ACeLrN071729>