Fix -r causing SIGSEGV due to parse_args() being called before font_current is set.

Approved by:	krion
MFC after:	3 days
This commit is contained in:
Florent Thoumie 2006-01-09 19:54:28 +00:00
parent 6c62b2acd0
commit 61927b8299

View File

@ -823,9 +823,6 @@ main(int argc, char **argv)
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;
@ -835,6 +832,9 @@ main(int argc, char **argv)
else
dir = keymapdir;
/* Parse command line arguments */
parse_args(argc, argv);
/* Read and display options */
menu_read();