Make sure we never use a stale format info pointer in interactive mode.
authorAndre Noll <maan@systemlinux.org>
Sat, 1 Nov 2008 23:35:29 +0000 (00:35 +0100)
committerAndre Noll <maan@systemlinux.org>
Sat, 1 Nov 2008 23:35:29 +0000 (00:35 +0100)
interactive.c

index 8c5575f..69b0343 100644 (file)
@@ -89,6 +89,7 @@ static int icom_set(char *line)
        }
 
        free_format_info(fi);
+       fi = NULL;
        return parse_select_options(line, &params, &admissible_uids, &fi);
 }