pidgin: 63e48c6f: fixes a printf crash on Windows, reporte...
khc at pidgin.im
khc at pidgin.im
Sat Dec 6 21:15:42 EST 2008
-----------------------------------------------------------------
Revision: 63e48c6f46a0639762084aace5a8aa75900a32d4
Ancestor: 196060989ecbfa760153e43530294b78f8999df6
Author: khc at pidgin.im
Date: 2008-12-07T02:12:00
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/63e48c6f46a0639762084aace5a8aa75900a32d4
Modified files:
libpurple/protocols/qq/qq.c
ChangeLog:
fixes a printf crash on Windows, reported by InstantBird developer fqueze
-------------- next part --------------
============================================================
--- libpurple/protocols/qq/qq.c 147df1a07b096a5cf6570b2d7892e38f4943fb97
+++ libpurple/protocols/qq/qq.c ac7ef0ea5e8e55e55c34a5060967944917800f3c
@@ -100,10 +100,13 @@ static void server_list_create(PurpleAcc
qd->use_tcp = purple_account_get_bool(account, "use_tcp", TRUE);
custom_server = purple_account_get_string(account, "server", NULL);
- purple_debug_info("QQ", "Select server '%s'\n", custom_server);
- if ( (custom_server != NULL && strlen(custom_server) > 0) && strcasecmp(custom_server, "auto") != 0) {
- qd->servers = g_list_append(qd->servers, g_strdup(custom_server));
- return;
+
+ if (custom_server != NULL) {
+ purple_debug_info("QQ", "Select server '%s'\n", custom_server);
+ if (*custom_server != '\0' && g_ascii_strcasecmp(custom_server, "auto") != 0) {
+ qd->servers = g_list_append(qd->servers, g_strdup(custom_server));
+ return;
+ }
}
if (qd->use_tcp) {
More information about the Commits
mailing list