projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Provide error checking for users of pkg_extract_* functions.
[oweals/opkg-lede.git]
/
libopkg
/
opkg_download.c
diff --git
a/libopkg/opkg_download.c
b/libopkg/opkg_download.c
index 49a48a08631cdbfa308026c615abd962dfa1453d..a92a2ad11d0987300a12c95566b57c30440bd46f 100644
(file)
--- a/
libopkg/opkg_download.c
+++ b/
libopkg/opkg_download.c
@@
-306,7
+306,7
@@
int opkg_prepare_url_for_install(opkg_conf_t *conf, const char *url, char **name
if (!pkg->architecture) {
opkg_message(conf, OPKG_ERROR, "Package %s has no Architecture defined.\n", pkg->name);
- return -
EINVAL
;
+ return -
1
;
}
pkg->dest = conf->default_dest;