Browse Source

prevent crash in jack_property when used with no arguments

pull/3/head
Paul Davis 12 years ago
parent
commit
7104eed8fe
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      property.c

+ 5
- 0
property.c View File

@@ -104,6 +104,11 @@ int main (int argc, char* argv[])
{ 0, 0, 0, 0 }
};

if (argc < 2) {
show_usage ();
exit (1);
}

while ((c = getopt_long (argc, argv, "sdDlaApc", long_options, &option_index)) >= 0) {
switch (c) {
case 's':


Loading…
Cancel
Save