projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
412665c
)
- dont do anything if the regex failes to compile
author
codewarrior
<codewarrior>
Tue, 8 Nov 2005 00:25:13 +0000
(
00:25
+0000)
committer
codewarrior
<codewarrior@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 8 Nov 2005 00:25:13 +0000
(
00:25
+0000)
SVN revision: 18368
src/bin/e_fileman_smart.c
patch
|
blob
|
history
diff --git
a/src/bin/e_fileman_smart.c
b/src/bin/e_fileman_smart.c
index
111efe5
..
4c32279
100644
(file)
--- a/
src/bin/e_fileman_smart.c
+++ b/
src/bin/e_fileman_smart.c
@@
-2312,7
+2312,8
@@
_e_fm_icon_select_regex(E_Fm_Smart_Data *sd, char *glob)
_e_fm_string_replace(glob, "*", ".*", tregex, (strlen(glob) + stars + 1)*sizeof(char));
regex = calloc(strlen(tregex) + 3, sizeof(char));
snprintf(regex, (strlen(tregex) + 3)*sizeof(char), "^%s$", tregex);
- regcomp(®, regex, REG_NOSUB | REG_EXTENDED);
+ if(regcomp(®, regex, REG_NOSUB | REG_EXTENDED))
+ return;
_e_fm_selections_clear(sd);
for (l = sd->files; l; l = l->next)
{