HomePhabricator

efl_canvas_vg_object: Fix dereference after null check

Authored by devilhorns on Mar 14 2019, 9:36 AM.

Description

efl_canvas_vg_object: Fix dereference after null check

Coverity reports that both pname & file variables can be null here,
and that we are potentially passing NULL to strcmp. Check for valid
variables before passing to strcmp

Fixes Coverity CID1399423, CID1399421

@fix

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8350

Marcel Hollerbach <mail@marcel-hollerbach.de> committed rEFL2d7678074eb0: efl_canvas_vg_object: Fix dereference after null check (authored by devilhorns).Mar 20 2019, 10:07 AM