mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-08 23:05:42 +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;
|
||||
break;
|
||||
case 't':
|
||||
timeout = atof(optarg);
|
||||
if (optarg)
|
||||
timeout = atof(optarg);
|
||||
break;
|
||||
case 'a':
|
||||
ignore_active_sensing = 0;
|
||||
|
|
Loading…
Reference in a new issue