Resolves: rhbz#675806 crash in es thesaurus

(cherry picked from commit b788f9fc846c0f47d02df02ac6733c0ac21a13c6)
This commit is contained in:
Caolán McNamara 2011-02-09 14:55:17 +00:00
parent e9b361d030
commit 7d5bc9ff4e
2 changed files with 14 additions and 2 deletions

View file

@ -41,8 +41,10 @@ TARFILE_MD5=067201ea8b126597670b5eff72e1f66c
ADDITIONAL_FILES += makefile.mk
PATCH_FILES=mythes-1.2.0-vanilla-th-gen-idx.patch \
mythes-1.2.0-makefile-mk.diff
PATCH_FILES=\
mythes-1.2.0-vanilla-th-gen-idx.patch \
mythes-1.2.0-makefile-mk.diff \
mythes-1.2.1-rhbz675806.patch
.IF "$(GUI)"=="UNX"
CONFIGURE_DIR=$(BUILD_DIR)

View file

@ -0,0 +1,10 @@
--- misc/mythes-1.2.0/mythes.cxx 2011-02-08 10:42:57.262964286 +0000
+++ misc/build/mythes-1.2.0/mythes.cxx 2011-02-08 10:43:06.305076490 +0000
@@ -14,6 +14,7 @@
encoding = NULL;
list = NULL;
offst = NULL;
+ pdfile = NULL;
if (thInitialize(idxpath, datpath) != 1) {
fprintf(stderr,"Error - can't open %s or %s\n",idxpath, datpath);