aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-03-05 16:45:10 -0800
committerChris Robinson <[email protected]>2016-03-05 16:45:10 -0800
commit1ca45fa3eb1ad303bbcd1e40ec97891ca8c3fab1 (patch)
tree00d5c5e21dccbc181873f281ea1c625576221854 /utils
parent4e3fdf9f5d79b45915ea773bf9e70ccfcc3799f6 (diff)
Use the correct index for finding an empty string
Diffstat (limited to 'utils')
-rw-r--r--utils/alsoft-config/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp
index 4eb5f25a..9fef1242 100644
--- a/utils/alsoft-config/mainwindow.cpp
+++ b/utils/alsoft-config/mainwindow.cpp
@@ -493,7 +493,7 @@ void MainWindow::loadConfig(const QString &fname)
ui->channelConfigCombo->setCurrentIndex(0);
if(channelconfig.isEmpty() == false)
{
- for(int i = 0;speakerModeList[i].name[i];i++)
+ for(int i = 0;speakerModeList[i].name[0];i++)
{
if(channelconfig == speakerModeList[i].value)
{
@@ -526,7 +526,7 @@ void MainWindow::loadConfig(const QString &fname)
* "sinc4". */
if(resampler == "cubic")
resampler = "sinc4";
- for(int i = 0;resamplerList[i].name[i];i++)
+ for(int i = 0;resamplerList[i].name[0];i++)
{
if(resampler == resamplerList[i].value)
{