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+.+:)|"
|
"(case\\s+.+:)|"
|
||||||
"(default:)"
|
"(default:)"
|
||||||
")\\s*$", REG_EXTENDED | REG_NOSUB);
|
")\\s*$", REG_EXTENDED | REG_NOSUB);
|
||||||
if (ret)
|
if (ret == 0)
|
||||||
{
|
ret = regexec(®ex, text, 0, NULL, 0);
|
||||||
regfree(®ex);
|
|
||||||
return EINA_FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = regexec(®ex, text, 0, NULL, 0);
|
|
||||||
regfree(®ex);
|
regfree(®ex);
|
||||||
free(text);
|
free(text);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue