/soc/2013/ankitkv/gobjectification: 769eba2245d2: Added a check ...
Ankit Vani
a at nevitus.org
Sun Sep 1 16:55:24 EDT 2013
Changeset: 769eba2245d20f13550f3c9a5ecef9b57a4b35b3
Author: Ankit Vani <a at nevitus.org>
Date: 2013-09-02 02:25 +0530
Branch: soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/769eba2245d2
Description:
Added a check to avoid a crash
diffstat:
libpurple/protocols/oscar/oscar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/libpurple/protocols/oscar/oscar.c b/libpurple/protocols/oscar/oscar.c
--- a/libpurple/protocols/oscar/oscar.c
+++ b/libpurple/protocols/oscar/oscar.c
@@ -5582,7 +5582,7 @@ oscar_protocol_base_init(OscarProtocolCl
OSCAR_DEFAULT_ALWAYS_USE_RV_PROXY);
proto_class->protocol_options = g_list_append(proto_class->protocol_options, option);
- if (g_str_equal(proto_class->id, "aim")) {
+ if (proto_class->id && g_str_equal(proto_class->id, "aim")) {
option = purple_account_option_bool_new(_("Allow multiple simultaneous logins"), "allow_multiple_logins",
OSCAR_DEFAULT_ALLOW_MULTIPLE_LOGINS);
proto_class->protocol_options = g_list_append(proto_class->protocol_options, option);
More information about the Commits
mailing list