diff options
author | Kalev Lember <klember@redhat.com> | 2016-12-20 15:48:08 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-01-17 10:36:20 +0000 |
commit | 8a9197c1dfa4e83d81feb29f85c14a13bfa1f48e (patch) | |
tree | 4468d94dad7e2625b1e8785f55b12bdb242aa795 | |
parent | eea864cd41355ea6764556e232aea07ddd67b93e (diff) | |
download | appstream-glib-8a9197c1dfa4e83d81feb29f85c14a13bfa1f48e.tar.gz |
trivial: Let g_build_filename take care of removing duplicate slashes
-rw-r--r-- | libappstream-builder/asb-utils.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libappstream-builder/asb-utils.c b/libappstream-builder/asb-utils.c index 2a8c870..fc2bf9a 100644 --- a/libappstream-builder/asb-utils.c +++ b/libappstream-builder/asb-utils.c @@ -249,8 +249,6 @@ asb_utils_explode_file (struct archive_entry *entry, const gchar *dir) g_autofree gchar *buf_link = NULL; symlink_depth = asb_utils_count_directories_deep (path) - 1; back_up = asb_utils_get_back_to_root (symlink_depth); - if (tmp[0] == '/') - tmp++; buf_link = g_build_filename (back_up, tmp, NULL); archive_entry_update_symlink_utf8 (entry, buf_link); } |