libpurple/protocols/zephyr/zephyr.c

changeset 22543
a73c80f1b40d
parent 22391
823ac1e9cfbb
child 22646
aacd8a4f9d94
child 23276
f4944cfaa1ff
equal deleted inserted replaced
22542:77de7dbc32b4 22543:a73c80f1b40d
2233 static char buf[BUF_LEN]; 2233 static char buf[BUF_LEN];
2234 PurpleConnection *gc; 2234 PurpleConnection *gc;
2235 char *tmp; 2235 char *tmp;
2236 2236
2237 gc = purple_account_get_connection(account); 2237 gc = purple_account_get_connection(account);
2238 if (gc == NULL)
2239 return NULL;
2240
2238 tmp = local_zephyr_normalize(gc->proto_data, who); 2241 tmp = local_zephyr_normalize(gc->proto_data, who);
2239 2242
2240 if (strlen(tmp) >= sizeof(buf)) { 2243 if (strlen(tmp) >= sizeof(buf)) {
2241 g_free(tmp); 2244 g_free(tmp);
2242 return NULL; 2245 return NULL;

mercurial