Skip to content
Permalink
Browse files

Fix crash on unknown option

getopts requires the last element of longopts to be filled with zeros.
  • Loading branch information
Nestorfish authored and sfan5 committed Sep 29, 2016
1 parent 4db3040 commit 42b36ecdaa917f024b4b47b97cd5e68f33ebf142
Showing with 1 addition and 0 deletions.
  1. +1 −0 mapper.cpp
@@ -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;

0 comments on commit 42b36ec

Please sign in to comment.