diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2020-07-06 22:05:06 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-07-07 09:45:55 +0000 |
commit | c32b2b7ea085b17f772f0a7beb0a8c1d03d80e63 (patch) | |
tree | 7f2ef71cd9c4ce7d670878fcee2eaedc2b470a90 | |
parent | 74a93aa2e8e5394278f92dbc99acfd10b745316d (diff) |
Fix wrong variable scope in protobuf.js
Change-Id: Ife096ede8ac7a929fb1ae2c7323c79258a0f1d8e
Reviewed-by: Richard Weickelt <richard@weickelt.de>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | share/qbs/modules/protobuf/protobuf.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/protobuf/protobuf.js b/share/qbs/modules/protobuf/protobuf.js index 6e2923048..b98389dd0 100644 --- a/share/qbs/modules/protobuf/protobuf.js +++ b/share/qbs/modules/protobuf/protobuf.js @@ -59,7 +59,7 @@ function getOutputDir(module, input) { if (importPaths.length !== 0) { var canonicalInput = File.canonicalFilePath(FileInfo.path(input.filePath)); for (var i = 0; i < importPaths.length; ++i) { - path = File.canonicalFilePath(importPaths[i]); + var path = File.canonicalFilePath(importPaths[i]); if (canonicalInput.startsWith(path)) { return outputDir + "/" + FileInfo.relativePath(path, canonicalInput); |