[packagekit] set backend name in pk_backend_set_name

Richard Hughes hughsient at gmail.com
Wed Apr 2 08:20:53 PDT 2008


On Wed, 2008-04-02 at 15:14 +0200, Stefan Haas wrote:
> in the commit "correct some error handling in pk_backend_set_name"
> today a few necessary lines of code were deleted:
> If it was intention we've to set the name of the backend otherwise...

In 15ab5bef458e046fb5884d0cfc59c66f4f97ed65 I changed this to:

	/* save the backend name and handle */
	g_free (backend->priv->name);
	backend->priv->name = g_strdup (backend_name);
	backend->priv->handle = handle;

only if we didn't hit any if the error checks. Doesn't this do the same
job?

Richard.





More information about the PackageKit mailing list