#! /bin/sh /usr/share/dpatch/dpatch-run ## 02_fix_non_matching_dicts_crasher.dpatch by Sebastien Bacher <seb128@ubuntu.com> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad enchant-1.4.2~/src/myspell/myspell_checker.cpp enchant-1.4.2/src/myspell/myspell_checker.cpp --- enchant-1.4.2~/src/myspell/myspell_checker.cpp 2008-05-05 22:19:18.000000000 +0200 +++ enchant-1.4.2/src/myspell/myspell_checker.cpp 2008-10-07 15:32:28.000000000 +0200 @@ -343,8 +343,8 @@ strstr (dir_entry, ".dic") != NULL) { char *dict = g_build_filename (dirs[i].c_str(), dir_entry, NULL); - g_dir_close (dir); if(s_hasCorrespondingAffFile(dict)){ + g_dir_close (dir); return dict; } }