From cdaff020cb2884f02082ba4cae541d8b63d7a1cc Mon Sep 17 00:00:00 2001 From: Andreas Scherer Date: Sun, 9 Jul 2023 14:25:42 +0000 Subject: [CWEB] Don't create index/section file names. Make section 79 more symmetric with respect to 'dot_pos==NULL'. In any case no index/section file names are created if option '-x' is used. git-svn-id: svn://tug.org/texlive/trunk@67589 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/cwebdir/common.w | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'Build/source/texk/web2c/cwebdir/common.w') diff --git a/Build/source/texk/web2c/cwebdir/common.w b/Build/source/texk/web2c/cwebdir/common.w index 0a7b9616a05..c3d82f3c942 100644 --- a/Build/source/texk/web2c/cwebdir/common.w +++ b/Build/source/texk/web2c/cwebdir/common.w @@ -1228,17 +1228,15 @@ after the dot. We must check that there is enough room in @@; if (dot_pos==NULL) { sprintf(tex_file_name,"%s.tex",*argv); - sprintf(idx_file_name,"%s.idx",*argv); - sprintf(scn_file_name,"%s.scn",*argv); sprintf(C_file_name,"%s.c",*argv); } else { strcpy(tex_file_name,*argv); strcpy(C_file_name,*argv); - if (make_xrefs) { /* indexes will be generated */ - *dot_pos='\0'; - sprintf(idx_file_name,"%s.idx",*argv); - sprintf(scn_file_name,"%s.scn",*argv); - } + *dot_pos='\0'; /* string now ends where the dot was */ + } + if (make_xrefs) { /* indexes will be generated */ + sprintf(idx_file_name,"%s.idx",*argv); + sprintf(scn_file_name,"%s.scn",*argv); } found_out=true; } -- cgit v1.2.3