aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-10-15 18:16:47 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-10-15 18:16:47 -0700
commit833abc27cc8653d92c4d275c042f35ced0ea3f94 (patch)
tree98b6af707453a688e6c4dbb258eca2f219ddfbf7 /common.cpp
parent3d5a3f03fa160edd0423ab6e8e93ba43c56b97a8 (diff)
Make wildcards beginning with dots not match . and ..
Diffstat (limited to 'common.cpp')
-rw-r--r--common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.cpp b/common.cpp
index 0e349f9e..b8dc4ceb 100644
--- a/common.cpp
+++ b/common.cpp
@@ -512,7 +512,7 @@ bool contains_internal( const wchar_t *a, ... )
{
const wchar_t *arg;
va_list va;
- int res = 0;
+ bool res = false;
CHECK( a, 0 );
@@ -521,7 +521,7 @@ bool contains_internal( const wchar_t *a, ... )
{
if( wcscmp( a,arg) == 0 )
{
- res=1;
+ res = true;
break;
}