aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorcodewarrior <codewarrior>2005-11-08 00:25:13 +0000
committercodewarrior <codewarrior@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-11-08 00:25:13 +0000
commit363ab60d99a5a3f7a0bdc6dbb62f5be4fe34d3c1 (patch)
treeeccb2c542906bccdcbe15acfd1914881cf624e4f /src
parentuse string, not key (diff)
downloadenlightenment-363ab60d99a5a3f7a0bdc6dbb62f5be4fe34d3c1.tar.gz
- dont do anything if the regex failes to compile
SVN revision: 18368
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_fileman_smart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/e_fileman_smart.c b/src/bin/e_fileman_smart.c
index 111efe514..4c32279b3 100644
--- 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(&reg, regex, REG_NOSUB | REG_EXTENDED);
+ if(regcomp(&reg, regex, REG_NOSUB | REG_EXTENDED))
+ return;
_e_fm_selections_clear(sd);
for (l = sd->files; l; l = l->next)
{