tree_entry_interesting(): give meaningful names to return values
[gitweb.git] / builtin / pack-objects.c
index ba3705d1de0d91714be4c967a26ffd263e09878c..b4f78555507b984609ce5ef71c4a3b63dd73e4e5 100644 (file)
@@ -979,7 +979,7 @@ static void add_pbase_object(struct tree_desc *tree,
        while (tree_entry(tree,&entry)) {
                if (S_ISGITLINK(entry.mode))
                        continue;
-               cmp = tree_entry_len(entry.path, entry.sha1) != cmplen ? 1 :
+               cmp = tree_entry_len(&entry) != cmplen ? 1 :
                      memcmp(name, entry.path, cmplen);
                if (cmp > 0)
                        continue;