[packagekit] [PATCH] Fix segfault in gpk_package_id_name_version
Ville-Pekka Vainio
vpivaini at cs.helsinki.fi
Fri Oct 3 13:57:23 PDT 2008
Hi,
When testing gpk-update-viewer with the dummy backend, I noticed it segfaults.
The reason was that PkPackageId *id was null. Apparently this was happening
with the dummy kernel update, probably because the Updates "field" is empty.
The attached patch fixes the segfault. I can commit to the repo, but being a
newbie with PackageKit I'd like to get a "+1" from someone before doing it.
--
Ville-Pekka Vainio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gpk_package_id_name_version-fix-segfault.patch
Type: text/x-diff
Size: 403 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20081003/27f3cc81/attachment-0004.patch>
More information about the PackageKit
mailing list