a fix for the initialized structs and some others, see
[fw/sdcc] / src / SDCCmain.c
index 31d5fdca5c64fdbebacdeb2d88839a3e49ab772e..3479f6c6b453f1e164aa76d26d2ba135106237ed 100644 (file)
@@ -1261,8 +1261,7 @@ _findPort (int argc, char **argv)
 {
   _validatePorts ();
 
-  argc--;
-  while (argc)
+  while (argc--)
     {
       if (!strncmp (*argv, "-m", 2))
        {
@@ -1270,7 +1269,6 @@ _findPort (int argc, char **argv)
          return;
        }
       argv++;
-      argc--;
     }
   /* Use the first in the list */
   port = _ports[0];