diff options
author | Eion Robb <eion@robbmob.com> | 2019-09-11 05:20:29 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2019-09-11 05:20:29 +0300 |
commit | a68e311bce0bc52cd2556c9b14ea5009ebb5f83c (patch) | |
tree | 4cca5388bde40f18d807fc68ce97e5141a2620cd | |
parent | feece3ce45e769660e36f9cd347f54003c95babf (diff) |
Fix crash when connecting, fixes issue #185
-rw-r--r-- | steam-mobile/libsteam.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/steam-mobile/libsteam.c b/steam-mobile/libsteam.c index 82ee838..c2db6c5 100644 --- a/steam-mobile/libsteam.c +++ b/steam-mobile/libsteam.c @@ -876,7 +876,10 @@ steam_got_friend_summaries(SteamAccount *sa, JsonObject *obj, gpointer user_data const gchar *steamid = json_object_get_string_member(player, "steamid");
gint64 personastate = -1;
- if (g_str_equal(steamid, sa->steamid) && purple_account_get_bool(sa->account, "change_status_to_game", FALSE)) {
+ if (steamid == NULL)
+ continue;
+
+ if (purple_strequal(steamid, sa->steamid) && purple_account_get_bool(sa->account, "change_status_to_game", FALSE)) {
const gchar *gameid = json_object_get_string_member(player, "gameid");
const gchar *last_gameid = purple_account_get_string(sa->account, "current_gameid", NULL);
if (!purple_strequal(last_gameid, gameid)) {
|