Fix warning

This commit is contained in:
TingPing 2014-02-12 09:27:28 -05:00
parent 93d0341f9c
commit 6d815ac688
1 changed files with 6 additions and 4 deletions

View File

@ -722,16 +722,16 @@ get_default_spell_languages (void)
g_free(last);
if (lang_list[0])
return ret;
return g_strdup (ret);
}
return "en";
return g_strdup ("en");
}
void
load_default_config(void)
{
const char *username, *realname, *font;
const char *username, *realname, *font, *langs;
char *sp;
#ifdef WIN32
char out[256];
@ -905,7 +905,8 @@ load_default_config(void)
}
strcpy (prefs.hex_text_font_alternative, DEF_FONT_ALTER);
strcpy (prefs.hex_text_spell_langs, get_default_spell_languages ());
langs = get_default_spell_languages ();
strcpy (prefs.hex_text_spell_langs, langs);
/* private variables */
@ -917,6 +918,7 @@ load_default_config(void)
g_free ((char *)username);
g_free ((char *)realname);
g_free ((char *)langs);
}
int