Mercurial > pidgin.yaz
changeset 13441:f3768fab10bd
[gaim-migrate @ 15816]
this would probably never happen, but clean up CID 36
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 07 Mar 2006 07:55:42 +0000 |
parents | eb439b15321b |
children | 5de8bf62b8ef |
files | src/desktopitem.c |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/desktopitem.c Tue Mar 07 07:44:03 2006 +0000 +++ b/src/desktopitem.c Tue Mar 07 07:55:42 2006 +0000 @@ -732,7 +732,7 @@ p = strchr (locale, '.'); if (p != NULL) *p = '\0'; - + if (g_list_find_custom (item->languages, locale, (GCompareFunc)strcmp) == NULL) { item->languages = g_list_prepend @@ -741,12 +741,14 @@ g_free (locale); } - /* Whack encoding from encoding in the key */ + /* Whack encoding from encoding in the key */ brace = strchr (k, '['); - p = strchr (brace, '.'); - if (p != NULL) { - *p = ']'; - *(p+1) = '\0'; + if(brace != NULL) { + p = strchr (brace, '.'); + if (p != NULL) { + *p = ']'; + *(p+1) = '\0'; + } } } }