mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-25 00:43:51 +01:00
Fix crash on unknown option
getopts requires the last element of longopts to be filled with zeros.
This commit is contained in:
parent
4db3040f2a
commit
42b36ecdaa
@ -82,6 +82,7 @@ int main(int argc, char *argv[])
|
||||
{"max-y", required_argument, 0, 'c'},
|
||||
{"zoom", required_argument, 0, 'z'},
|
||||
{"colors", required_argument, 0, 'C'},
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
std::string input;
|
||||
|
Loading…
Reference in New Issue
Block a user