summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorAndrey Loskutov <loskutov@gmx.de>2014-09-29 16:28:06 +0200
committerAndrey Loskutov <loskutov@gmx.de>2014-10-23 12:31:49 +0200
commit4ea8c655d62e02544c06b4a8ea61929a84fb1c79 (patch)
tree4c1c4d3a10b04dd4a88de6fe5b8062a16918650c /org.eclipse.jgit
parent13ffda0666cec94183529307eecbbda3bcf12fb1 (diff)
downloadjgit-4ea8c655d62e02544c06b4a8ea61929a84fb1c79.tar.gz
jgit-4ea8c655d62e02544c06b4a8ea61929a84fb1c79.zip
Initialize 'pathLen' field also for empty directories
Bug: 445363 Change-Id: Ia8428af84fb61ba0d572374a19e8e8c55b138a63 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
index 9eb4285557..3d63d92542 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/WorkingTreeIterator.java
@@ -668,6 +668,8 @@ public abstract class WorkingTreeIterator extends AbstractTreeIterator {
ptr = 0;
if (!eof())
parseEntry();
+ else if (pathLen == 0) // see bug 445363
+ pathLen = pathOffset;
}
/**