1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-18 18:06:17 +02:00
openwrt-xburst/package/opkg/patches/005-uninitialized_err.patch
jow 22d6227505 [package] opkg: bump to r284
- incorporates parsing improvements upstream
	- fixes a couple of memory leaks
	- fixes some null pointer dereferences
	- fixes possible crashes during removal of packages
	- various other corrections


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18380 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-11 21:42:05 +00:00

17 lines
430 B
Diff

--- a/libopkg/pkg_hash.c
+++ b/libopkg/pkg_hash.c
@@ -384,8 +384,11 @@
abstract_pkg_t *apkg = NULL;
pkg_t *ret;
- if (!(apkg = abstract_pkg_fetch_by_name(hash, name)))
- return NULL;
+ if (!(apkg = abstract_pkg_fetch_by_name(hash, name))) {
+ if (err)
+ *err = 0;
+ return NULL;
+ }
ret = pkg_hash_fetch_best_installation_candidate(conf, apkg, pkg_name_constraint_fcn, apkg->name, 0, err);