INN commit: trunk/innd (art.c)

INN Commit rra at isc.org
Wed Jan 20 22:02:34 UTC 2010


    Date: Wednesday, January 20, 2010 @ 14:02:33
  Author: iulius
Revision: 8909

Though it currently does no harm to use ngp here, it is
better to have another variable (in case the logic of the
code changes in the future, ngp may be used for another
purpose and should not be initialized here).

Modified:
  trunk/innd/art.c

-------+
 art.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: art.c
===================================================================
--- art.c	2010-01-20 21:29:23 UTC (rev 8908)
+++ art.c	2010-01-20 22:02:33 UTC (rev 8909)
@@ -1924,6 +1924,7 @@
   int		i, j, *isp, hopcount, oerrno, canpost;
   size_t        n;
   NEWSGROUP	*ngp, **ngptr;
+  NEWSGROUP     *ngpjunk;
   SITE		*sp;
   ARTDATA	*data = &cp->Data;
   HDRCONTENT	*hc = data->HdrContent;
@@ -2237,9 +2238,9 @@
       } else if (innconf->wanttrash && !innconf->verifygroups) {
         /* Don't set Accepted in this case, because we may still end
          * up filing the article in the junk group. */
-        for (ngp = NGfind(ARTjnk), sp = Sites, i = nSites; --i >= 0; sp++) {
+        for (ngpjunk = NGfind(ARTjnk), sp = Sites, i = nSites; --i >= 0; sp++) {
             if (sp->Name != NULL && sp->FeedTrash && SITEwantsgroup(sp, *groups)) {
-                SITEmark(sp, ngp);
+                SITEmark(sp, ngpjunk);
             }
         }
         NonExist = true;




More information about the inn-committers mailing list