minimodem: fix segfault on unrecognized option

This commit is contained in:
Kamal Mostafa 2011-06-20 19:18:38 -07:00
parent 0e1093843a
commit 15bb83ee9b
1 changed files with 1 additions and 0 deletions

View File

@ -172,6 +172,7 @@ main( int argc, char*argv[] )
{ "bandwidth", 1, 0, 'b' },
{ "mark", 1, 0, 'M' },
{ "space", 1, 0, 'S' },
{ 0 }
};
c = getopt_long(argc, argv, "tr85f:b:M:S:",
long_options, &option_index);