summaryrefslogtreecommitdiff
path: root/Build/source/texk/mendexk/fwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/mendexk/fwrite.c')
-rw-r--r--Build/source/texk/mendexk/fwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/mendexk/fwrite.c b/Build/source/texk/mendexk/fwrite.c
index 66dd1fcfba0..ee5fee0b8e3 100644
--- a/Build/source/texk/mendexk/fwrite.c
+++ b/Build/source/texk/mendexk/fwrite.c
@@ -124,7 +124,7 @@ void indwrite(char *filename, struct index *ind, int pagenum)
FILE *fp;
int conv_euc_to_euc;
- if (filename[0]!='\0' && kpse_out_name_ok(filename)) fp=fopen(filename,"wb");
+ if (filename && kpse_out_name_ok(filename)) fp=fopen(filename,"wb");
else {
fp=stdout;
#ifdef WIN32
@@ -303,7 +303,7 @@ void indwrite(char *filename, struct index *ind, int pagenum)
}
fputs(postamble,fp);
- if (filename[0]!='\0') fclose(fp);
+ if (filename) fclose(fp);
}
/* write page block */