/pidgin/main: 94ef6e02c72d: Fix loading the text replacement plu...
Daniel Atallah
datallah at pidgin.im
Tue Oct 28 22:26:35 EDT 2014
Changeset: 94ef6e02c72db7ffacd5ec4950e6aa0991bc2f72
Author: Daniel Atallah <datallah at pidgin.im>
Date: 2014-10-28 22:23 -0400
Branch: release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/94ef6e02c72d
Description:
Fix loading the text replacement plugin's dict file, which was broken by e6937e52930b. Fixes #16408
diffstat:
pidgin/plugins/spellchk.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/pidgin/plugins/spellchk.c b/pidgin/plugins/spellchk.c
--- a/pidgin/plugins/spellchk.c
+++ b/pidgin/plugins/spellchk.c
@@ -1781,7 +1781,7 @@ static void load_conf(void)
gboolean case_sensitive = FALSE;
buf = g_build_filename(purple_user_dir(), "dict", NULL);
- if (g_file_get_contents(buf, &ibuf, &size, NULL) && ibuf) {
+ if (!(g_file_get_contents(buf, &ibuf, &size, NULL) && ibuf)) {
ibuf = g_strdup(defaultconf);
size = strlen(defaultconf);
}
More information about the Commits
mailing list