summaryrefslogtreecommitdiff
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
parentddf267e50695770801ef2d627dd590db8c91759e (diff)
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)
780 PARSE_CHECK(next); 780 PARSE_CHECK(next);
781 last = EINA_TRUE; 781 last = EINA_TRUE;
782 *next++ = 0; 782 *next++ = 0;
783 PARSE_CHECK(!*next);
783 } 784 }
784 785
785 // Named arguments 786 // Named arguments
@@ -1800,7 +1801,7 @@ evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str)
1800 } 1801 }
1801 else PARSE_CHECK(!"invalid command"); 1802 else PARSE_CHECK(!"invalid command");
1802 } 1803 }
1803 success = EINA_TRUE; 1804 success = (count > 0);
1804 1805
1805 DBG("Program successfully compiled with %d instruction(s)", count); 1806 DBG("Program successfully compiled with %d instruction(s)", count);
1806 1807