forked from Lephenixnoir/fxos
shell: fix uninitialized CLI parameters
Could start with show_help = true at higher optimization levels.
This commit is contained in:
parent
11ca1cc2fc
commit
f7f5fbf884
|
@ -199,8 +199,8 @@ static std::string read_interactive(Session const &s, bool &leave)
|
|||
return cmd;
|
||||
}
|
||||
|
||||
int norc;
|
||||
std::string execute_arg;
|
||||
int norc = 0;
|
||||
std::string execute_arg = "";
|
||||
char* extra_rom = NULL;
|
||||
|
||||
static void parse_options(int argc, char **argv) {
|
||||
|
@ -213,7 +213,7 @@ static void parse_options(int argc, char **argv) {
|
|||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
bool show_help;
|
||||
bool show_help = false;
|
||||
|
||||
int opt, option_index;
|
||||
while (1) {
|
||||
|
|
Loading…
Reference in New Issue