index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2019-10-06 20:06:43 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-10-07 10:55:49 +1000 |
commit | 0c4a8ae24b8395b0dd4f8046615336e394a8e3f8 (patch) | |
tree | d92ee46c76bc4f32a69db6cd4bdd72388ef57543 /lib/libalpm | |
parent | 5dd2b3776dedd85c196be737ea9c177216448756 (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 6 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index e5696bb0..506dcb8e 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -53,9 +53,11 @@ static const char *get_filename(const char *url) { char *filename = strrchr(url, '/'); if(filename != NULL) { - filename++; + return filename + 1; } - return filename; + + /* no slash found, it's a filename */ + return url; } static char *get_fullpath(const char *path, const char *filename, |