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:
@@ -62,8 +62,6 @@ _call_plugin_open(struct AuditPluginContext *audit_ctx, int submit_optind, char
|
||||
if (py_submit_argv != NULL) {
|
||||
rc = python_plugin_api_rc_call(plugin_ctx, CALLBACK_PYNAME(open),
|
||||
Py_BuildValue("(iO)", submit_optind, py_submit_argv));
|
||||
} else {
|
||||
rc = SUDO_RC_ERROR;
|
||||
}
|
||||
|
||||
Py_XDECREF(py_submit_argv);
|
||||
|
Reference in New Issue
Block a user