From 6afed21188df0c417349563621302ec85f44096f Mon Sep 17 00:00:00 2001 From: graham.gower Date: Thu, 26 Nov 2009 19:42:00 -0500 Subject: Provide error checking for users of pkg_extract_* functions. git-svn-id: http://opkg.googlecode.com/svn/trunk@391 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg_download.c') diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c index 49a48a0..a92a2ad 100644 --- 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; -- cgit v0.9.1