Commit 2579937e authored by Georg Krause's avatar Georg Krause

Fix crash when starting with empty controller name

parent b8a5786e
Pipeline #367 passed with stages
in 1 minute and 46 seconds
......@@ -82,7 +82,7 @@ int DiskReader::loadPreferences()
int nCtlrs = cJSON_GetArraySize( ctlrs );
for(int i = 0; i < nCtlrs; i++ ) {
cJSON* ctlr = cJSON_GetArrayItem( ctlrs, i );
if( ctlr ) {
if( ctlr && strcmp(ctlr->valuestring, "") != 0 ) {
LOOPP_NOTE("Loading controller %s", ctlr->valuestring);
stringstream s;
s << getenv("HOME") << "/.config/soundship/loopp/controllers/" << ctlr->valuestring;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment