Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/pidgin-opensteamworks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2019-09-11 05:20:29 +0300
committerEion Robb <eion@robbmob.com>2019-09-11 05:20:29 +0300
commita68e311bce0bc52cd2556c9b14ea5009ebb5f83c (patch)
tree4cca5388bde40f18d807fc68ce97e5141a2620cd
parentfeece3ce45e769660e36f9cd347f54003c95babf (diff)
Fix crash when connecting, fixes issue #185
-rw-r--r--steam-mobile/libsteam.c5
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)) {