Skip to content

Commit 9776e58

Browse files
committed
regen/HeaderParser: Fix conflated 0,empty
This thought the string '0' meant empty; it should be testing that the string isn't empty.
1 parent b32a36b commit 9776e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regen/HeaderParser.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ sub _wrap_and_line_up_cond {
10121012
if ($rest =~ s!(\s*/\*.*?\*/)\s*\z!! || $rest =~ s!(\s*\*/\s*)\z!!) {
10131013
$rest_tail= $1;
10141014
}
1015-
if ($rest) {
1015+
if ($rest ne "") {
10161016
$rest= $self->tidy_cond($rest);
10171017
$rest= $rest_head . $rest . $rest_tail;
10181018
}

0 commit comments

Comments
 (0)