Skip to content

Commit c65cf43

Browse files
committed
Merge pull request #323 from htacg/squelch_null_prefix
Allows null value css-prefix to be used in a config file without issu…
2 parents db4f647 + 6323473 commit c65cf43

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/config.c

+4-1
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)