Revision 1826 trunk/src/linad99/optmatch.cpp

optmatch.cpp (revision 1826)
85 85
    i++;
86 86
  }
87 87
  while (p);
88

  
89
  bool found = false;
88 90
  do
89 91
  {
90 92
    p = strtok(NULL, " ");
91 93
    if (!p) break;
92
    if (p[0] == '-') break;
94
    if (p[0] == '-')
95
      found = true;
93 96
    nopt++;
94 97
  }
95
  while(1);
98
  while(!found);
96 99

  
97 100
  return rval;
98 101
}

Also available in: Unified diff