From aa90e25c17c979724ce7fa0245fd1fd6f599f4b8 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 10 Mar 2024 17:59:24 -0500 Subject: [PATCH] branch2.cpp --- src/branch2.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/branch2.cpp b/src/branch2.cpp index dedd8ca0..1aacc284 100644 --- a/src/branch2.cpp +++ b/src/branch2.cpp @@ -70,13 +70,12 @@ Branch2::operator=(Branch2 const &b_) bool Branch2::matches_exclude(ghc::filesystem::path const &path_) const { + int rv; const char *path; path = path_.string().c_str(); for(auto const &pattern : exclude_patterns) { - int rv; - rv = ::fnmatch(pattern.c_str(),path,FNM_EXTMATCH); if(rv == 0) return true;