upas/fs: remove useless loop in rf822()

This commit is contained in:
cinap_lenrek 2019-11-24 03:46:53 +01:00
parent 6c2017f6a6
commit 87c8fa5415

View file

@ -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)