projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
pattern.c
diff --git
a/pattern.c
b/pattern.c
index
53cce82
..
d7b274f
100644
(file)
--- a/
pattern.c
+++ b/
pattern.c
@@
-698,7
+698,6
@@
pattern_t *mutt_pattern_comp ( /* const */ char *s, int flags, BUFFER * err)
pattern_t *last = NULL;
int not = 0;
int alladdr = 0;
pattern_t *last = NULL;
int not = 0;
int alladdr = 0;
- int stringmatch = 0;
int or = 0;
int implicit = 1; /* used to detect logical AND operator */
struct pattern_flags *entry;
int or = 0;
int implicit = 1; /* used to detect logical AND operator */
struct pattern_flags *entry;
@@
-744,10
+743,8
@@
pattern_t *mutt_pattern_comp ( /* const */ char *s, int flags, BUFFER * err)
implicit = 0;
not = 0;
alladdr = 0;
implicit = 0;
not = 0;
alladdr = 0;
- stringmatch = 0;
break;
case '=':
break;
case '=':
- stringmatch = 1;
/* fallthrough */
case '~':
if (implicit && or) {
/* fallthrough */
case '~':
if (implicit && or) {
@@
-763,10
+760,9
@@
pattern_t *mutt_pattern_comp ( /* const */ char *s, int flags, BUFFER * err)
tmp = new_pattern ();
tmp->not = not;
tmp->alladdr = alladdr;
tmp = new_pattern ();
tmp->not = not;
tmp->alladdr = alladdr;
- tmp->stringmatch =
stringmatch
;
+ tmp->stringmatch =
(*ps.dptr == '=') ? 1 : 0
;
not = 0;
alladdr = 0;
not = 0;
alladdr = 0;
- stringmatch = 0;
if (last)
last->next = tmp;
if (last)
last->next = tmp;