Init the format info struct in interactive mode.
authorAndre Noll <maan@systemlinux.org>
Sat, 1 Nov 2008 22:47:03 +0000 (23:47 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 1 Nov 2008 22:47:03 +0000 (23:47 +0100)
Another bug which causes adu to segfault if used in interactive mode
and without setting any options.

interactive.c

index a35a82b..28ef74a 100644 (file)
@@ -143,6 +143,7 @@ int com_interactive(void)
        int ret = 1;
 
        select_cmdline_parser_init(&select_conf);
+       ret = parse_select_options(NULL, NULL, &admissible_uids, &fi);
        while (read_input_line(line, sizeof(line)) >= 0) {
                ret = exec_interactive_command(line);
                if (ret < 0)