Skip to content

Commit 6a87a21

Browse files
committed
Merge commit '8649e42'
* commit '8649e42': Fixed bug #62838
2 parents 0312d0a + 8649e42 commit 6a87a21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/enchant/enchant.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ PHP_FUNCTION(enchant_dict_quick_check)
730730

731731
if (sugg) {
732732
zval_dtor(sugg);
733+
array_init(sugg);
733734
}
734735

735736
PHP_ENCHANT_GET_DICT;
@@ -743,8 +744,6 @@ PHP_FUNCTION(enchant_dict_quick_check)
743744
RETURN_FALSE;
744745
}
745746

746-
array_init(sugg);
747-
748747
suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, &n_sugg_st);
749748
memcpy(&n_sugg, &n_sugg_st, sizeof(n_sugg));
750749
if (suggs && n_sugg) {

0 commit comments

Comments
 (0)