File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3890,6 +3890,7 @@ struct fstHier *fstReaderIterateHier(fstReaderContext *xc)
3890
3890
fstHandle alias ;
3891
3891
char * pnt ;
3892
3892
int ch ;
3893
+ int unnamed_scope_idx = 0 ;
3893
3894
3894
3895
if (!xc )
3895
3896
return (NULL );
@@ -3921,6 +3922,9 @@ struct fstHier *fstReaderIterateHier(fstReaderContext *xc)
3921
3922
pnt [cl ++ ] = ch ;
3922
3923
}
3923
3924
}; /* scopename */
3925
+ if (!cl ) {
3926
+ cl = snprintf (pnt , FST_ID_NAM_SIZ , "$unnamed_scope_%d" , unnamed_scope_idx ++ );
3927
+ }
3924
3928
pnt [cl ] = 0 ;
3925
3929
xc -> hier .u .scope .name_length = cl ;
3926
3930
@@ -4059,6 +4063,7 @@ int fstReaderProcessHier(fstReaderContext *xc, FILE *fv)
4059
4063
uint64_t attrarg ;
4060
4064
fstHandle maxhandle_scanbuild ;
4061
4065
int cl ;
4066
+ int unnamed_scope_idx = 0 ;
4062
4067
4063
4068
if (!xc )
4064
4069
return (0 );
@@ -4194,6 +4199,9 @@ int fstReaderProcessHier(fstReaderContext *xc, FILE *fv)
4194
4199
pnt [cl ++ ] = ch ;
4195
4200
}
4196
4201
}; /* scopename */
4202
+ if (!cl ) {
4203
+ cl = snprintf (pnt , FST_ID_NAM_SIZ , "$unnamed_scope_%d" , unnamed_scope_idx ++ );
4204
+ }
4197
4205
pnt [cl ] = 0 ;
4198
4206
while (fgetc (xc -> fh )) {
4199
4207
}; /* scopecomp */
You can’t perform that action at this time.
0 commit comments