shell: fix uninitialized CLI parameters

Could start with show_help = true at higher optimization levels.
This commit is contained in:
Lephenixnoir 2022-04-04 10:51:31 +01:00
parent 11ca1cc2fc
commit f7f5fbf884
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 3 additions and 3 deletions

View File

@ -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) {