aboutsummaryrefslogtreecommitdiff
path: root/shell/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/match.c')
-rw-r--r--shell/match.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/match.c b/shell/match.c
index ee8abb2db..90f77546d 100644
--- a/shell/match.c
+++ b/shell/match.c
@@ -64,11 +64,10 @@ char* FAST_FUNC scan_and_match(char *string, const char *pattern, unsigned flags
64 } 64 }
65 65
66 while (loc != end) { 66 while (loc != end) {
67 char c;
68 int r; 67 int r;
69 68
70 c = *loc;
71 if (flags & SCAN_MATCH_LEFT_HALF) { 69 if (flags & SCAN_MATCH_LEFT_HALF) {
70 char c = *loc;
72 *loc = '\0'; 71 *loc = '\0';
73 r = fnmatch(pattern, string, 0); 72 r = fnmatch(pattern, string, 0);
74 //bb_error_msg("fnmatch('%s','%s',0):%d", pattern, string, r); 73 //bb_error_msg("fnmatch('%s','%s',0):%d", pattern, string, r);