We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8966a9 commit 55ee445Copy full SHA for 55ee445
plugins/plugins.cpp
@@ -1076,9 +1076,9 @@ struct StaticPluginLoader {
1076
if (!string::startsWith(version, APP_VERSION_MAJOR + "."))
1077
{
1078
// force ABI, we use static plugins so this doesnt matter as long as it builds
1079
- json_t* json_version = json_string((APP_VERSION_MAJOR + ".0").c_str());
1080
- json_object_set(rootJ, "version", json_version);
1081
- json_decref(json_version);
+ json_t* const versionJ = json_string((APP_VERSION_MAJOR + ".0").c_str());
+ json_object_set(rootJ, "version", versionJ);
+ json_decref(versionJ);
1082
}
1083
1084
// Load manifest
0 commit comments