diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-11-24 03:46:53 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-11-24 03:46:53 +0100 |
| commit | 87c8fa541572387c012dab672890e13334ef8c37 (patch) | |
| tree | c64b5c04d5a3688cf9899fae1591aad4302cfd8a | |
| parent | 6c2017f6a66294a39e646f7c725cc8b4856485c7 (diff) | |
| download | plan9front-87c8fa541572387c012dab672890e13334ef8c37.tar.xz | |
upas/fs: remove useless loop in rf822()
| -rw-r--r-- | sys/src/cmd/upas/fs/mbox.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/src/cmd/upas/fs/mbox.c b/sys/src/cmd/upas/fs/mbox.c index 419596e0e..159108d9a 100644 --- a/sys/src/cmd/upas/fs/mbox.c +++ b/sys/src/cmd/upas/fs/mbox.c @@ -867,15 +867,12 @@ ref822(Message *m, Header *h, char*, char *p) n = getfields(s, f, nelem(f), 1, "<> \n\t\r,"); if(n > Nref) n = Nref; - a = m->references; - for(i = 0; i < Nref; i++) - if(a[i] == nil) - break; /* * if there are too many references, drop from the beginning * of the list. If someone else has a duplicate, we keep the * old duplicate. */ + a = m->references; for(i = 0; i < n; i++){ for(j = 0; j < Nref; j++) if(a[j] == nil || strcmp(a[j], f[i]) == 0) |
