projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More dead code removal.
[oweals/opkg-lede.git]
/
libopkg
/
opkg_download.c
diff --git
a/libopkg/opkg_download.c
b/libopkg/opkg_download.c
index 70d11955d781543933fb688f48652782338aed1c..94f416c7782d5c1a30bdc05b67e28031fbf958b7 100644
(file)
--- a/
libopkg/opkg_download.c
+++ b/
libopkg/opkg_download.c
@@
-259,9
+259,8
@@
int opkg_prepare_url_for_install(opkg_conf_t *conf, const char *url, char **name
{
int err = 0;
pkg_t *pkg;
+
pkg = pkg_new();
- if (pkg == NULL)
- return ENOMEM;
if (str_starts_with(url, "http://")
|| str_starts_with(url, "ftp://")) {