deskmirror - handle invalid ptr access (null)

don't crash. survive.
This commit is contained in:
Carsten Haitzler 2020-11-18 10:04:17 +00:00
parent 1b381ca100
commit d192549e58
1 changed files with 1 additions and 0 deletions

View File

@ -282,6 +282,7 @@ _mirror_client_theme_setup(Mirror_Border *mb, Evas_Object *o)
{
char buf[4096];
if ((!mb) || (!mb->m) || (!mb->m->ec)) return;
if (e_comp_object_frame_exists(mb->m->ec->frame))
snprintf(buf, sizeof(buf), "e/deskmirror/frame/%s", mb->m->ec->border.name);
else