summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/pkg_hash.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libopkg/pkg_hash.c b/libopkg/pkg_hash.c
index e08840b..a99cf6b 100644
--- a/libopkg/pkg_hash.c
+++ b/libopkg/pkg_hash.c
@@ -717,10 +717,6 @@ void
file_hash_set_file_owner(const char *file_name, pkg_t *owning_pkg)
{
pkg_t *old_owning_pkg;
- int file_name_len = strlen(file_name);
-
- if (file_name[file_name_len -1] == '/')
- return;
file_name = strip_offline_root(file_name);