xbps_find_orphan_packages: report return value as errno in an error path.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091023120316-om71k2rnmk4ruzh1
This commit is contained in:
Juan RP 2009-10-23 14:03:16 +02:00
parent b689725270
commit 6a855c0272

View File

@ -138,6 +138,7 @@ xbps_find_orphan_packages(void)
rv = xbps_callback_array_iter_reverse_in_dict(dict, "packages",
find_orphan_pkg, NULL);
if (rv != 0) {
errno = rv;
cleanup();
return NULL;
}