/pidgin/main: fe562503e212: Check for old pref existence before ...
Elliott Sales de Andrade
qulogic at pidgin.im
Thu Aug 23 01:43:36 EDT 2012
Changeset: fe562503e212275dca5f8d9b77bb7874f1d85485
Author: Elliott Sales de Andrade <qulogic at pidgin.im>
Date: 2012-08-23 01:41 -0400
Branch: default
URL: http://hg.pidgin.im/pidgin/main/rev/fe562503e212
Description:
Check for old pref existence before using it.
Fixes #15278.
diffstat:
libpurple/plugins/autoaccept.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/libpurple/plugins/autoaccept.c b/libpurple/plugins/autoaccept.c
--- a/libpurple/plugins/autoaccept.c
+++ b/libpurple/plugins/autoaccept.c
@@ -239,7 +239,7 @@ plugin_load(PurplePlugin *plugin)
* --Mark Doliner, 2011-01-03
*/
if (!purple_prefs_exists(PREF_STRANGER)) {
- if (purple_prefs_get_bool(PREF_STRANGER_OLD))
+ if (purple_prefs_exists(PREF_STRANGER_OLD) && purple_prefs_get_bool(PREF_STRANGER_OLD))
purple_prefs_add_int(PREF_STRANGER, FT_REJECT);
else
purple_prefs_set_int(PREF_STRANGER, FT_ASK);
More information about the Commits
mailing list