diff options
Diffstat (limited to 'libopkg/opkg_download.c')
-rw-r--r-- | libopkg/opkg_download.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c index 70d1195..94f416c 100644 --- 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://")) { |