aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-18 12:09:43 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-20 13:27:42 +0900
commit8a694314a46982846666d949e437f0cbe2fbb396 (patch)
tree1763e20b20d60b703deda10ae0f3ec90f7358468 /src
parentEvas filters: Fix padding in blur filter (diff)
downloadefl-8a694314a46982846666d949e437f0cbe2fbb396.tar.gz
Evas filters: Fix options parsing
Test case "blend() blend();" did not fail when it should have. Also, return an error if the program was empty (all whitespaces).
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/filters/evas_filter_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/filters/evas_filter_parser.c b/src/lib/evas/filters/evas_filter_parser.c
index 3dfc423946..087c0ac6bf 100644
--- a/src/lib/evas/filters/evas_filter_parser.c
+++ b/src/lib/evas/filters/evas_filter_parser.c
@@ -780,6 +780,7 @@ _instruction_parse(Evas_Filter_Instruction *instr, const char *string)
PARSE_CHECK(next);
last = EINA_TRUE;
*next++ = 0;
+ PARSE_CHECK(!*next);
}
// Named arguments
@@ -1800,7 +1801,7 @@ evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str)
}
else PARSE_CHECK(!"invalid command");
}
- success = EINA_TRUE;
+ success = (count > 0);
DBG("Program successfully compiled with %d instruction(s)", count);