diff options
author | Eion Robb <eion@robbmob.com> | 2011-04-08 17:26:26 +0400 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2011-04-08 17:26:26 +0400 |
commit | a49b690ca4fe7d003a500233985e293c739377d1 (patch) | |
tree | 5362d61515465d5c1fea462e3e2ba825c2562a08 /libskype.c | |
parent | 1727b1caa29dc0b86cb6a9d904fa0aad4f7d7ee5 (diff) |
Fix thread race issues with static PurpleAccount storage. Also thanks to skotlex.
Diffstat (limited to 'libskype.c')
-rw-r--r-- | libskype.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |