aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/basic/docproc.c')
-rw-r--r--scripts/basic/docproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c
index 4c9523ef9c00..99ca7a698687 100644
--- a/scripts/basic/docproc.c
+++ b/scripts/basic/docproc.c
@@ -385,7 +385,7 @@ int main(int argc, char *argv[])
385 if (!srctree) 385 if (!srctree)
386 srctree = getcwd(NULL, 0); 386 srctree = getcwd(NULL, 0);
387 kernsrctree = getenv("KBUILD_SRC"); 387 kernsrctree = getenv("KBUILD_SRC");
388 if (!kernsrctree) 388 if (!kernsrctree || !*kernsrctree)
389 kernsrctree = srctree; 389 kernsrctree = srctree;
390 if (argc != 3) { 390 if (argc != 3) {
391 usage(); 391 usage();