aboutsummaryrefslogtreecommitdiff
path: root/tools/build
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-01-07 16:50:51 +0000
committerWarner Losh <imp@FreeBSD.org>2024-01-07 16:51:49 +0000
commit4748db6ffd422f8b52d49f5e2982628ac52afb8c (patch)
tree8dbec19a0fef4706453db5d63d10a701a5f0026c /tools/build
parent1e817245783307fd30de71d9e3dc74df6ad20b05 (diff)
downloadsrc-4748db6ffd422f8b52d49f5e2982628ac52afb8c.tar.gz
src-4748db6ffd422f8b52d49f5e2982628ac52afb8c.zip
Diffstat (limited to 'tools/build')
-rwxr-xr-xtools/build/checkstyle9.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build/checkstyle9.pl b/tools/build/checkstyle9.pl
index d2c6ea77868d..3b28fef93669 100755
--- a/tools/build/checkstyle9.pl
+++ b/tools/build/checkstyle9.pl
@@ -1410,7 +1410,7 @@ sub process {
checkfilename($realfile, \$acpi_testexpected, \$acpi_nontestexpected);
$p1_prefix = $1;
- if (!$file && $tree && $p1_prefix ne '' &&
+ if (!$file && $tree && $p1_prefix ne '' && defined $root &&
-e "$root/$p1_prefix") {
WARN("patch prefix '$p1_prefix' exists, appears to be a -p0 patch\n");
}