summaryrefslogtreecommitdiff
path: root/Build/source/texk/mendexk/fwrite.c
diff options
context:
space:
mode:
authorTakuji Tanaka <ttk@t-lab.opal.ne.jp>2021-08-29 01:36:13 +0000
committerTakuji Tanaka <ttk@t-lab.opal.ne.jp>2021-08-29 01:36:13 +0000
commit2a5ab9d04556bdef2373c3b78f48cea876df4861 (patch)
treee5dd78c98a5bc56691bfce582e5490c9b918e092 /Build/source/texk/mendexk/fwrite.c
parentb136fee29103594e68df08d2cd42f74c637a773a (diff)
mendex: fix bug of symbol_flag=0
git-svn-id: svn://tug.org/texlive/trunk@60352 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/mendexk/fwrite.c')
-rw-r--r--Build/source/texk/mendexk/fwrite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/mendexk/fwrite.c b/Build/source/texk/mendexk/fwrite.c
index 078e334c845..523a7c81ee4 100644
--- a/Build/source/texk/mendexk/fwrite.c
+++ b/Build/source/texk/mendexk/fwrite.c
@@ -146,8 +146,8 @@ void indwrite(char *filename, struct index *ind, int pagenum)
for (i=line_length=0;i<lines;i++) {
if (i==0) {
if (!((alphabet(ind[i].dic[0][0]))||(japanese(ind[i].dic[0])))) {
- if (lethead_flag) {
- if (symbol_flag && strlen(symbol)) {
+ if (lethead_flag!=0 && symbol_flag) {
+ if (strlen(symbol)) {
fprintf(fp,"%s%s%s",lethead_prefix,symbol,lethead_suffix);
}
else if (lethead_flag>0) {
@@ -218,7 +218,7 @@ void indwrite(char *filename, struct index *ind, int pagenum)
if (!((alphabet(ind[i].dic[0][0]))||(japanese(ind[i].dic[0])))) {
if ((alphabet(ind[i-1].dic[0][0]))||(japanese(ind[i-1].dic[0]))){
fputs(group_skip,fp);
- if (lethead_flag && symbol_flag) {
+ if (lethead_flag!=0 && symbol_flag) {
if (strlen(symbol)) {
fprintf(fp,"%s%s%s",lethead_prefix,symbol,lethead_suffix);
}