discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=9409f435a31464657b56372b24f9ad75138f902a

commit 9409f435a31464657b56372b24f9ad75138f902a
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Jan 30 13:10:28 2014 -0500

    e_util_glob functions now automatch when pointers are the same
---
 src/bin/e_utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c
index 4423211..a5f78d3 100644
--- a/src/bin/e_utils.c
+++ b/src/bin/e_utils.c
@@ -68,6 +68,7 @@ e_util_glob_match(const char *str, const char *pattern)
         if (str[0] == 0) return 1;
         return 0;
      }
+   if (str == pattern) return 1;
    if (!strcmp(pattern, "*")) return 1;
    if (!fnmatch(pattern, str, 0)) return 1;
    return 0;
@@ -79,6 +80,7 @@ e_util_glob_case_match(const char *str, const char *pattern)
    const char *p;
    char *tstr, *tglob, *tp;
 
+   if (str == pattern) return 1;
    if (pattern[0] == 0)
      {
         if (str[0] == 0) return 1;

-- 


Reply via email to