comparison libpurple/protocols/myspace/myspace.c @ 23319:5b8239453a1e

Apply patch to fix #4937 'msim_normalize() error during initialization of libpurple' from Jaywalker. Closes #4937.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Sun, 08 Jun 2008 19:15:26 +0000
parents e0bcb8cfda74
children 19ab21882b38
comparison
equal deleted inserted replaced
23317:d4cc956acb37 23319:5b8239453a1e
2402 if (msim_is_userid(str)) { 2402 if (msim_is_userid(str)) {
2403 /* Have user ID, we need to get their username first :) */ 2403 /* Have user ID, we need to get their username first :) */
2404 const char *username; 2404 const char *username;
2405 2405
2406 /* If the account does not exist, we can't look up the user. */ 2406 /* If the account does not exist, we can't look up the user. */
2407 if (!account) 2407 if (!account || !account->gc)
2408 return str; 2408 return str;
2409 2409
2410 id = atol(str); 2410 id = atol(str);
2411 username = msim_uid2username_from_blist((PurpleAccount *)account, id); 2411 username = msim_uid2username_from_blist((PurpleAccount *)account, id);
2412 if (!username) { 2412 if (!username) {