forked from enlightenment/enlightenment
PackageKit: Fix crash on error
Sometimes a "normal" error occurs and then the callback is called with no context data. Then crash boom sigsegv happens.
This commit is contained in:
parent
45f26f5205
commit
b30892056e
|
@ -220,6 +220,7 @@ static void
|
|||
_store_error(E_PackageKit_Module_Context *ctxt, const char *err)
|
||||
{
|
||||
ERR("PKGKIT: ERROR: %s", err);
|
||||
if (!ctxt) return; // see packagekit_get_updates()
|
||||
if (ctxt->error)
|
||||
eina_stringshare_replace(&ctxt->error, err);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue