elm_code: Another Coverity fix, better this time.

@fix CID1371322
This commit is contained in:
Andy Williams 2017-02-19 14:15:29 +00:00
parent 25a24e3348
commit e0e2dc92f5
1 changed files with 2 additions and 6 deletions

View File

@ -24,13 +24,9 @@ elm_code_line_indent_startswith_keyword(Elm_Code_Line *line)
"(case\\s+.+:)|"
"(default:)"
")\\s*$", REG_EXTENDED | REG_NOSUB);
if (ret)
{
regfree(&regex);
return EINA_FALSE;
}
if (ret == 0)
ret = regexec(&regex, text, 0, NULL, 0);
ret = regexec(&regex, text, 0, NULL, 0);
regfree(&regex);
free(text);