Fix some dead stores noted by PVS Studio.
Since rc is initialized to SUDO_RC_ERROR there is no need to set it to SUDO_RC_ERROR again on failure if rc has not been changed since initialization.
This commit is contained in:
@@ -309,7 +309,6 @@ python_plugin_construct(struct PluginContext *plugin_ctx, unsigned int version,
|
||||
|
||||
if (py_kwargs == NULL) {
|
||||
py_log_last_error("Failed to construct plugin instance");
|
||||
rc = SUDO_RC_ERROR;
|
||||
} else {
|
||||
rc = python_plugin_construct_custom(plugin_ctx, py_kwargs);
|
||||
}
|
||||
|
Reference in New Issue
Block a user