summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-14 12:26:41 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-14 13:06:05 +0900
commita4ecf34316593fde02fea16bdbae3be659dd1da2 (patch)
treead45563779a8bbf405e396faed4578ccff0c21af
parent29a7fe464ea5f987734ea84ff83a61a41fa749a0 (diff)
Evas filters: More clang fixes
NULL ptr dereference.
-rw-r--r--src/lib/evas/filters/evas_filter_parser.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/evas/filters/evas_filter_parser.c b/src/lib/evas/filters/evas_filter_parser.c
index 9c9ba04420..c133fb0428 100644
--- a/src/lib/evas/filters/evas_filter_parser.c
+++ b/src/lib/evas/filters/evas_filter_parser.c
@@ -2079,6 +2079,7 @@ _instr2cmd_fill(Evas_Filter_Context *ctx, Evas_Filter_Program *pgm,
2079 Buffer *buf; 2079 Buffer *buf;
2080 int R, G, B, A, l, r, t, b; 2080 int R, G, B, A, l, r, t, b;
2081 Evas_Filter_Command *cmd; 2081 Evas_Filter_Command *cmd;
2082 Eina_Inlist *il;
2082 DATA32 color; 2083 DATA32 color;
2083 int cmdid; 2084 int cmdid;
2084 2085
@@ -2095,7 +2096,11 @@ _instr2cmd_fill(Evas_Filter_Context *ctx, Evas_Filter_Program *pgm,
2095 cmdid = evas_filter_command_fill_add(ctx, dc, buf->cid); 2096 cmdid = evas_filter_command_fill_add(ctx, dc, buf->cid);
2096 RESETCOLOR(); 2097 RESETCOLOR();
2097 2098
2098 cmd = EINA_INLIST_CONTAINER_GET(eina_inlist_last(ctx->commands), Evas_Filter_Command); 2099 if (cmdid < 0) return -1;
2100 il = eina_inlist_last(ctx->commands);
2101 if (!il) return -1;
2102
2103 cmd = EINA_INLIST_CONTAINER_GET(il, Evas_Filter_Command);
2099 cmd->draw.clip.l = l; 2104 cmd->draw.clip.l = l;
2100 cmd->draw.clip.r = r; 2105 cmd->draw.clip.r = r;
2101 cmd->draw.clip.t = t; 2106 cmd->draw.clip.t = t;