Enlightenment CVS committal
Author : codewarrior
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_fileman_smart.c
Log Message:
- dont do anything if the regex failes to compile
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman_smart.c,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -3 -r1.97 -r1.98
--- e_fileman_smart.c 8 Nov 2005 00:06:30 -0000 1.97
+++ e_fileman_smart.c 8 Nov 2005 00:25:13 -0000 1.98
@@ -2312,7 +2312,8 @@
_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)
{
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs