Initialize the string buffer to something - otherwise we'll try to load garbage

This commit is contained in:
simon.kagstrom 2009-05-21 17:21:43 +00:00
parent 282002425b
commit d5bf95ec6e
2 changed files with 2 additions and 2 deletions

View File

@ -570,7 +570,7 @@ void gui_display(int shortcut)
if (prefs_has_changed)
{
char user_options[255];
char user_options[255] = "";
#ifdef OPTIONS_IN_HOME
char *home = getenv ("HOME");
if (home != NULL && strlen (home) < 240)

View File

@ -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
* 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};
#ifdef OPTIONS_IN_HOME
char *home = getenv ("HOME");