Mercurial > pidgin.yaz
diff libpurple/desktopitem.c @ 29471:d83ee160ffb6
propagate from branch 'im.pidgin.pidgin' (head eb9385f349a20856b9d3f9911dbc8024caa44052)
to branch 'im.pidgin.pidgin.next.minor' (head 439fb2dd7a285d9ca645f65f36ef0f037abe7311)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 19 Aug 2009 00:46:04 +0000 |
parents | da33da2e1a1e |
children | f1437342cc0e |
line wrap: on
line diff
--- a/libpurple/desktopitem.c Mon Mar 02 06:51:50 2009 +0000 +++ b/libpurple/desktopitem.c Wed Aug 19 00:46:04 2009 +0000 @@ -823,15 +823,18 @@ } } -/* fallback to find something suitable for C locale */ +/** + * Fallback to find something suitable for C locale. + * + * @return A newly allocated string which should be g_freed by the caller. + */ static char * try_english_key (PurpleDesktopItem *item, const char *key) { - char *str; + char *str = NULL; char *locales[] = { "en_US", "en_GB", "en_AU", "en", NULL }; int i; - str = NULL; for (i = 0; locales[i] != NULL && str == NULL; i++) { str = g_strdup (lookup_locale (item, key, locales[i])); }