Fix crash on unknown option

getopts requires the last element of longopts to be filled with zeros.
This commit is contained in:
Nestorfish 2016-09-29 21:11:58 +02:00 committed by sfan5
parent 4db3040f2a
commit 42b36ecdaa
1 changed files with 1 additions and 0 deletions

View File

@ -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;