summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-02-19 14:15:29 +0000
committerAndy Williams <andy@andywilliams.me>2017-02-19 14:15:29 +0000
commite0e2dc92f52a8ca50a4564a921fd408f426bc78e (patch)
tree1eb10c50203b8631e0d45c65d3fd970c93fcd806 /src/lib/elementary
parent25a24e33483c3277c3dcca3eb7f28cd1fa334927 (diff)
elm_code: Another Coverity fix, better this time.
@fix CID1371322
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elm_code_indent.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/elementary/elm_code_indent.c b/src/lib/elementary/elm_code_indent.c
index 5002e95077..756186823b 100644
--- a/src/lib/elementary/elm_code_indent.c
+++ b/src/lib/elementary/elm_code_indent.c
@@ -24,13 +24,9 @@ elm_code_line_indent_startswith_keyword(Elm_Code_Line *line)
24 "(case\\s+.+:)|" 24 "(case\\s+.+:)|"
25 "(default:)" 25 "(default:)"
26 ")\\s*$", REG_EXTENDED | REG_NOSUB); 26 ")\\s*$", REG_EXTENDED | REG_NOSUB);
27 if (ret) 27 if (ret == 0)
28 { 28 ret = regexec(&regex, text, 0, NULL, 0);
29 regfree(&regex);
30 return EINA_FALSE;
31 }
32 29
33 ret = regexec(&regex, text, 0, NULL, 0);
34 regfree(&regex); 30 regfree(&regex);
35 free(text); 31 free(text);
36 32