GfxDeviceNColorSpace::copy: Move i inside loop
diff --git a/poppler/GfxState.cc b/poppler/GfxState.cc
index 557ce46..dc7939b 100644
--- a/poppler/GfxState.cc
+++ b/poppler/GfxState.cc
@@ -2976,7 +2976,6 @@
 }
 
 GfxColorSpace *GfxDeviceNColorSpace::copy() {
-  int i;
   int *mappingA = nullptr;
 
   auto sepsCSA = new std::vector<GfxSeparationColorSpace*>();
@@ -2989,7 +2988,7 @@
   }
   if (mapping != nullptr) {
     mappingA = (int *)gmalloc(sizeof(int) * nComps);
-    for (i = 0; i < nComps; i++)
+    for (int i = 0; i < nComps; i++)
       mappingA[i] = mapping[i];
   }
   return new GfxDeviceNColorSpace(nComps, names, alt->copy(), func->copy(),