evas_filter: Add null check for instruction

Summary:
Add a null check for cases where the param passed
from the filter instruction can be a null pointer.

Test Plan: N/A

Reviewers: kimcinoo, Hermet

Subscribers: #reviewers, #committers, cedric

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12084
This commit is contained in:
junsu choi 2020-08-05 14:45:22 +09:00 committed by Shinwoo Kim
parent f126c7f06c
commit 26b50c91f8
1 changed files with 1 additions and 1 deletions

View File

@ -3436,7 +3436,7 @@ _instr2cmd_transform(Evas_Filter_Context *ctx,
INSTR_PARAM_CHECK(src);
INSTR_PARAM_CHECK(dst);
if (!strcasecmp(op, "vflip"))
if (op && !strcasecmp(op, "vflip"))
flags = EVAS_FILTER_TRANSFORM_VFLIP;
else
{