rendered paste body
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#
--- C/ipkg_install.c~remove-c99isms
+++ C/ipkg_install.c
@@ -186,6 +186,7 @@
{
abstract_pkg_vec_t *providers = pkg_hash_fetch_all_installation_candidates (&conf->pkg_hash, pkg_name);
int i;
+ ipkg_error_t err;
if (providers == NULL)
return IPKG_PKG_HAS_NO_CANDIDATE;
@@ -193,7 +194,7 @@
for (i = 0; i < providers->len; i++) {
abstract_pkg_t *ppkg = abstract_pkg_vec_get(providers, i);
ipkg_message(conf, IPKG_DEBUG2,"Function: %s calling ipkg_install_by_name %d \n",__FUNCTION__, i);
- ipkg_error_t err = ipkg_install_by_name(conf, ppkg->name);
+ err = ipkg_install_by_name(conf, ppkg->name);
if (err)
return err;
}