Issue #105 Segfault Bugfix;

This commit is contained in:
lwvmobile 2023-03-21 20:59:53 -04:00
parent 313759333e
commit 304b5545ba
1 changed files with 3 additions and 0 deletions

View File

@ -541,6 +541,9 @@ openAudioInDevice (dsd_opts * opts)
const char ch = '.'; const char ch = '.';
extension = strrchr(opts->audio_in_dev, ch); //return extension if this is a .wav or .bin file extension = strrchr(opts->audio_in_dev, ch); //return extension if this is a .wav or .bin file
//if no extension set, give default of .wav -- bugfix for github issue #105
if (extension == NULL) extension = ".wav";
// get info of device/file // get info of device/file
if (strncmp(opts->audio_in_dev, "-", 1) == 0) if (strncmp(opts->audio_in_dev, "-", 1) == 0)
{ {