From 1ca45fa3eb1ad303bbcd1e40ec97891ca8c3fab1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 5 Mar 2016 16:45:10 -0800 Subject: Use the correct index for finding an empty string --- utils/alsoft-config/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/alsoft-config') 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) { -- cgit v1.2.3