mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 18:46:32 +01:00
amidi: optarg might be NULL, fix 't' argument parsing
This commit is contained in:
parent
1fefc14402
commit
1314abd2d6
1 changed files with 2 additions and 1 deletions
|
@ -510,7 +510,8 @@ int main(int argc, char *argv[])
|
||||||
dump = 1;
|
dump = 1;
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
timeout = atof(optarg);
|
if (optarg)
|
||||||
|
timeout = atof(optarg);
|
||||||
break;
|
break;
|
||||||
case 'a':
|
case 'a':
|
||||||
ignore_active_sensing = 0;
|
ignore_active_sensing = 0;
|
||||||
|
|
Loading…
Reference in a new issue