Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=cfpm.git;a=commitdiff;h=928994592fa06f09086e30ff5694b68e9a977ba7
commit 928994592fa06f09086e30ff5694b68e9a977ba7 Author: Priyank <priy...@frugalware.org> Date: Mon Jun 8 12:40:15 2009 +0530 Fixed segfaults * Database::getGroupCache() and Database::getPackageCache() diff --git a/pm.cc b/pm.cc index 0301e0b..8363e68 100644 --- a/pm.cc +++ b/pm.cc @@ -447,8 +447,8 @@ PackageList::PackageList(PM_LIST *l) Package* PackageList::getData() { - Package *ret = NULL; - PM_PKG *data = (PM_PKG*) getData(); + Package *ret; + PM_PKG *data = (PM_PKG*) pacman_list_getdata(list); if ( data ) { @@ -469,8 +469,8 @@ GroupList::GroupList(PM_LIST *l) Group* GroupList::getData() { - Group *ret = NULL; - PM_GRP *data = (PM_GRP*) getData(); + Group *ret; + PM_GRP *data = (PM_GRP*) pacman_list_getdata(list); if ( data ) { _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git