Fix loading the text replacement plugin's dict file, which was broken by e6937e52930b. Fixes #16408 release-2.x.y

Tue, 28 Oct 2014 22:23:50 -0400

author
Daniel Atallah <datallah@pidgin.im>
date
Tue, 28 Oct 2014 22:23:50 -0400
branch
release-2.x.y
changeset 36206
94ef6e02c72d
parent 36205
eac4ec7a2532
child 36207
befb6523dc5c

Fix loading the text replacement plugin's dict file, which was broken by e6937e52930b. Fixes #16408

pidgin/plugins/spellchk.c file | annotate | diff | comparison | revisions
--- a/pidgin/plugins/spellchk.c	Mon Oct 27 13:30:15 2014 -0400
+++ b/pidgin/plugins/spellchk.c	Tue Oct 28 22:23:50 2014 -0400
@@ -1781,7 +1781,7 @@
 	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);
 	}

mercurial