Fix to geometrymode option parsing code (allow empty optarg)

This commit is contained in:
Rogier 2014-05-19 16:00:46 +02:00
parent 6071a76bf2
commit 20163ec7a4

View File

@ -676,7 +676,7 @@ int main(int argc, char *argv[])
if (!foundGeometrySpec) if (!foundGeometrySpec)
generator.setBlockGeometry(true); generator.setBlockGeometry(true);
} }
else { else if (optarg && *optarg) {
for (char *c = optarg; *c; c++) for (char *c = optarg; *c; c++)
if (*c == ',') *c = ' '; if (*c == ',') *c = ' ';
istringstream iss; istringstream iss;