mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-11-22 10:39:19 +01:00
Initialize the string buffer to something - otherwise we'll try to load garbage
This commit is contained in:
parent
282002425b
commit
d5bf95ec6e
@ -570,7 +570,7 @@ void gui_display(int shortcut)
|
|||||||
|
|
||||||
if (prefs_has_changed)
|
if (prefs_has_changed)
|
||||||
{
|
{
|
||||||
char user_options[255];
|
char user_options[255] = "";
|
||||||
#ifdef OPTIONS_IN_HOME
|
#ifdef OPTIONS_IN_HOME
|
||||||
char *home = getenv ("HOME");
|
char *home = getenv ("HOME");
|
||||||
if (home != NULL && strlen (home) < 240)
|
if (home != NULL && strlen (home) < 240)
|
||||||
|
@ -436,7 +436,7 @@ static void parse_cmdline_and_init_file (int argc, char **argv)
|
|||||||
/* FIXME! ska: This is temporary, and will be removed when you can
|
/* FIXME! ska: This is temporary, and will be removed when you can
|
||||||
* pass command line options in meta.xml for the homebrew channel */
|
* pass command line options in meta.xml for the homebrew channel */
|
||||||
{
|
{
|
||||||
char user_options[255];
|
char user_options[255] = "";
|
||||||
char *user_argv[] = {"program", "-f", user_options};
|
char *user_argv[] = {"program", "-f", user_options};
|
||||||
#ifdef OPTIONS_IN_HOME
|
#ifdef OPTIONS_IN_HOME
|
||||||
char *home = getenv ("HOME");
|
char *home = getenv ("HOME");
|
||||||
|
Loading…
Reference in New Issue
Block a user