diff --git a/bind8/bind8-lib.pl b/bind8/bind8-lib.pl index 05e3b97b2..659dff418 100755 --- a/bind8/bind8-lib.pl +++ b/bind8/bind8-lib.pl @@ -92,8 +92,8 @@ while($line = ) { # strip comments $line =~ s/\r|\n//g; $line =~ s/#.*$//g; - $line =~ s/\/\/.*$//g if ($line !~ /".*\/\/.*"/); $line =~ s/\/\*.*\*\///g; + $line =~ s/\/\/.*$//g if ($line !~ /".*\/\/.*"/); while(1) { if (!$cmode && $line =~ /\/\*/) { # start of a C-style comment