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

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2011-04-08 17:26:26 +0400
committerEion Robb <eion@robbmob.com>2011-04-08 17:26:26 +0400
commita49b690ca4fe7d003a500233985e293c739377d1 (patch)
tree5362d61515465d5c1fea462e3e2ba825c2562a08 /libskype.c
parent1727b1caa29dc0b86cb6a9d904fa0aad4f7d7ee5 (diff)
Fix thread race issues with static PurpleAccount storage. Also thanks to skotlex.
Diffstat (limited to 'libskype.c')
-rw-r--r--libskype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libskype.c b/libskype.c
index 6b5484e..c314039 100644
--- a/libskype.c
+++ b/libskype.c
@@ -551,7 +551,7 @@ PURPLE_INIT_PLUGIN(skype, plugin_init, info);
static PurpleAccount *
skype_get_account(PurpleAccount *newaccount)
{
- static PurpleAccount* account;
+ static PurpleAccount* account = NULL;
if (newaccount != NULL)
account = newaccount;
return account;