libpkg/fetch.c: avoid calling strlen() for same variable
modified libpkg/fetch.c
@@ -207,14 +207,16 @@ static struct fetcher *
|
|
|
|
|
|
| + | |
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -231,6 +233,7 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, int dest, struct fetch_item *fi,
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -261,8 +264,8 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, int dest, struct fetch_item *fi,
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -271,7 +274,7 @@ pkg_fetch_file_to_fd(struct pkg_repo *repo, int dest, struct fetch_item *fi,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|