Skip to content

Commit 1c963ac

Browse files
committed
Merge branch 'master' into fix_img_alt
2 parents 933fc3d + c65cf43 commit 1c963ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/config.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,10 @@ Bool ParseCSS1Selector( TidyDocImpl* doc, const TidyOptionImpl* option )
12061206
}
12071207
buf[i] = '\0';
12081208

1209-
if ( i == 0 || !TY_(IsCSS1Selector)(buf) ) {
1209+
if ( i == 0 ) {
1210+
return no;
1211+
}
1212+
else if ( !TY_(IsCSS1Selector)(buf) ) {
12101213
TY_(ReportBadArgument)( doc, option->name );
12111214
return no;
12121215
}

0 commit comments

Comments
 (0)