# HG changeset patch # User Eric Warmenhoven # Date 1003441449 0 # Node ID 221e1c8e2410c4532667826c75648da5ebd1564d # Parent 8229710b343b8479388beeebcd1919314fe2e601 [gaim-migrate @ 2555] i meant to do this already. committer: Tailor Script diff -r 8229710b343b -r 221e1c8e2410 src/protocols/gg/gg.c --- a/src/protocols/gg/gg.c Thu Oct 18 20:56:59 2001 +0000 +++ b/src/protocols/gg/gg.c Thu Oct 18 21:44:09 2001 +0000 @@ -1,6 +1,6 @@ /* * gaim - Gadu-Gadu Protocol Plugin - * $Id: gg.c 2554 2001-10-18 20:56:59Z warmenhoven $ + * $Id: gg.c 2555 2001-10-18 21:44:09Z warmenhoven $ * * Copyright (C) 2001, Arkadiusz Mi¶kiewicz * @@ -92,12 +92,12 @@ static gchar *charset_convert(const gchar *locstr, char *encsrc, char *encdst) { - gchar *result = NULL; + gchar *result = NULL; #ifdef HAVE_ICONV - if (iconv_string(encdst, encsrc, locstr, locstr+strlen(locstr)+1, &result, NULL) < 0) + if (iconv_string(encdst, encsrc, locstr, locstr+strlen(locstr)+1, &result, NULL) >= 0) + return result; #endif return g_strdup(locstr); - return result; } static gboolean invalid_uin(char *uin)