Author: grobmeier
Date: Mon May  4 09:15:01 2009
New Revision: 771250

URL: http://svn.apache.org/viewvc?rev=771250&view=rev
Log:
COMPRESS-71: corrected use of parameter. Patch applied from Eric Chatellier.

Modified:
    
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java

Modified: 
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
URL: 
http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java?rev=771250&r1=771249&r2=771250&view=diff
==============================================================================
--- 
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
 (original)
+++ 
commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
 Mon May  4 09:15:01 2009
@@ -230,7 +230,7 @@
             this.linkFlag = LF_DIR;
 
             int nameLength = fileName.length();
-            if (nameLength == 0 || name.charAt(nameLength - 1) != '/') {
+            if (nameLength == 0 || fileName.charAt(nameLength - 1) != '/') {
                 this.name = fileName + "/";
             } else {
                 this.name = fileName;                


Reply via email to