forked from enlightenment/efl
elm_code: Another Coverity fix, better this time.
@fix CID1371322
This commit is contained in:
parent
25a24e3348
commit
e0e2dc92f5
|
@ -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(®ex);
|
||||
return EINA_FALSE;
|
||||
}
|
||||
if (ret == 0)
|
||||
ret = regexec(®ex, text, 0, NULL, 0);
|
||||
|
||||
ret = regexec(®ex, text, 0, NULL, 0);
|
||||
regfree(®ex);
|
||||
free(text);
|
||||
|
||||
|
|
Loading…
Reference in New Issue