[packagekit] [PATCH] Fix segfault in gpk_package_id_name_version

Richard Hughes hughsient at gmail.com
Sat Oct 4 01:02:44 PDT 2008


On 10/3/08, Ville-Pekka Vainio <vpivaini at cs.helsinki.fi> wrote:
> 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.

You.dont need the braces, but otherwise, +1, thanks.

Richard



More information about the PackageKit mailing list