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).
This commit is contained in:
Jean-Philippe Andre 2014-02-18 12:09:43 +09:00
parent ddf267e506
commit 8a694314a4
1 changed files with 2 additions and 1 deletions

View File

@ -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);