ref: ccb737893f20462e44411b987584266221507186
parent: 3157bf30a78205427cb7b2a5f79c08c5f6a82205
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Nov 23 22:46:53 EST 2019
upas/fs: remove useless loop in rf822()
--- a/sys/src/cmd/upas/fs/mbox.c
+++ b/sys/src/cmd/upas/fs/mbox.c
@@ -867,15 +867,12 @@
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)
--
⑨