summaryrefslogtreecommitdiff
path: root/Build/source/texk/upmendex
diff options
context:
space:
mode:
authorTakuji Tanaka <KXD02663@nifty.ne.jp>2016-11-12 15:20:37 +0000
committerTakuji Tanaka <KXD02663@nifty.ne.jp>2016-11-12 15:20:37 +0000
commit2ab3ce7aaaa07c7a7a32bede4c2a981e4d8d1b15 (patch)
tree709fc4145780f369a362f70b928694dad776cbc9 /Build/source/texk/upmendex
parent6af6e0e251f621fd41787af90a4228b03f40222b (diff)
upmendex: Avoid access violation
git-svn-id: svn://tug.org/texlive/trunk@42492 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/upmendex')
-rw-r--r--Build/source/texk/upmendex/ChangeLog4
-rw-r--r--Build/source/texk/upmendex/main.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/Build/source/texk/upmendex/ChangeLog b/Build/source/texk/upmendex/ChangeLog
index d3d014f1b07..2ee1fae89cf 100644
--- a/Build/source/texk/upmendex/ChangeLog
+++ b/Build/source/texk/upmendex/ChangeLog
@@ -1,3 +1,7 @@
+2016-11-12 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
+
+ * main.c: Avoid access violation.
+
2016-06-19 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
* version 0.51 Beta version.
diff --git a/Build/source/texk/upmendex/main.c b/Build/source/texk/upmendex/main.c
index eb5a68db6e7..1a46b6a04d3 100644
--- a/Build/source/texk/upmendex/main.c
+++ b/Build/source/texk/upmendex/main.c
@@ -202,8 +202,6 @@ int main(int argc, char **argv)
/* init hangul tumunja table */
u_strcpy(tumunja,GANADA);
- if (styfile!=NULL) styread(styfile);
-
if (!indfile &&(idxcount-fsti>0)) {
indfile=xmalloc(strlen(idxfile[0]+6));
for (i=strlen(idxfile[0]);i>=0;i--) {
@@ -233,6 +231,9 @@ int main(int argc, char **argv)
efp=stderr;
logfile=xstrdup("stderr");
}
+
+ if (styfile!=NULL) styread(styfile);
+
set_icu_attributes();
if (strcmp(argv[0],"makeindex")==0) {