Skip to content

Commit c5b0c47

Browse files
authored
Fix potential SEGV in debug print (dresden-elektronik#6837)
Note it was not actually triggered with the shipped DDFs.
1 parent 2560328 commit c5b0c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

read_files.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ QMap<QString, QMap<QString, quint16>> loadButtonMapCommadsJson(const QJsonDocume
116116
}
117117
else if (!i.value().isObject())
118118
{
119-
DBG_Printf(DBG_INFO, "[ERROR] - Expected '%s' in JSON file to be an object, but it isn't. Skipping entry...\n");
119+
DBG_Printf(DBG_INFO, "[ERROR] - Expected '%s' in JSON file to be an object, but it isn't. Skipping entry...\n", qPrintable(i.key()));
120120
continue;
121121
}
122122
else

0 commit comments

Comments
 (0)