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:
parent
cecb9f6b7b
commit
4d88aab3ea
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user