Index: trunk/rtcm3torinex/lib/rtcm3torinex.c
===================================================================
--- trunk/rtcm3torinex/lib/rtcm3torinex.c	(revision 5362)
+++ trunk/rtcm3torinex/lib/rtcm3torinex.c	(revision 5363)
@@ -2174,11 +2174,11 @@
 {
 #ifdef NO_RTCM3_MAIN
-  int i, modified = 0;
+  int flags, modified = 0;
   if(Parser->allflags == 0)
     Parser->allflags = ~0;
+  flags = Parser->allflags;
   if(Parser->rinex3)
   {
     struct HeaderData *hdata = 0;
-    int flags = Parser->allflags;
     CHECKFLAGSNEW(GPS, C1,  C1C)
     CHECKFLAGSNEW(GPS, L1C, L1C)
@@ -2216,6 +2216,4 @@
   else
   {
-    int flags = Parser->allflags;
-
     CHECKFLAGS(C1,C1)
     CHECKFLAGS(C2,C2)
