Fix to geometrymode option parsing code (allow empty optarg)
This commit is contained in:
parent
6071a76bf2
commit
20163ec7a4
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user