From 33b09d214c4b694c7e58db22e9fc39be0b8d09c8 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 1 Nov 2008 23:47:03 +0100 Subject: [PATCH] Init the format info struct in interactive mode. Another bug which causes adu to segfault if used in interactive mode and without setting any options. --- interactive.c | 1 + 1 file changed, 1 insertion(+) diff --git a/interactive.c b/interactive.c index a35a82b..28ef74a 100644 --- a/interactive.c +++ b/interactive.c @@ -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) -- 2.39.5