Skip to content

Commit

Permalink
Merge commit '8649e42' into PHP-5.4
Browse files Browse the repository at this point in the history
* commit '8649e42':
  Fixed bug #62838
  • Loading branch information
tony2001 committed Aug 16, 2012
2 parents c9265b1 + 8649e42 commit b5494c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/enchant/enchant.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ PHP_FUNCTION(enchant_dict_quick_check)

if (sugg) {
zval_dtor(sugg);
array_init(sugg);
}

PHP_ENCHANT_GET_DICT;
Expand All @@ -743,8 +744,6 @@ PHP_FUNCTION(enchant_dict_quick_check)
RETURN_FALSE;
}

array_init(sugg);

suggs = enchant_dict_suggest(pdict->pdict, word, wordlen, &n_sugg_st);
memcpy(&n_sugg, &n_sugg_st, sizeof(n_sugg));
if (suggs && n_sugg) {
Expand Down

0 comments on commit b5494c5

Please sign in to comment.