[gtkhtml/gnome-3-6] Bug 699757 - Crash in gtkhtml_spell_checker_get_suggestions()



commit 6cf9c48178901d134905946652a84656e7b54e87
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon May 6 10:47:05 2013 -0400

    Bug 699757 - Crash in gtkhtml_spell_checker_get_suggestions()
    
    Initialize the "n_suggestions" variable in case enchant_dict_suggest()
    fails to set it.
    
    (cherry picked from commit dad1f9387e18440807ef66921ee6bd25bed0308d)

 components/editor/gtkhtml-spell-checker.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/components/editor/gtkhtml-spell-checker.c b/components/editor/gtkhtml-spell-checker.c
index 1b49dfc..0927f57 100644
--- a/components/editor/gtkhtml-spell-checker.c
+++ b/components/editor/gtkhtml-spell-checker.c
@@ -326,7 +326,7 @@ gtkhtml_spell_checker_get_suggestions (GtkhtmlSpellChecker *checker,
 {
        EnchantDict *dict;
        gchar **suggestions;
-       gsize n_suggestions;
+       gsize n_suggestions = 0;
        GList *list = NULL;
 
        g_return_val_if_fail (GTKHTML_IS_SPELL_CHECKER (checker), NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]