Fix some warnings from pvs-studio

This commit is contained in:
Todd C. Miller
2020-08-12 13:45:09 -06:00
parent fb8ed8ba66
commit 961a4afe67
45 changed files with 330 additions and 314 deletions

View File

@@ -160,7 +160,6 @@ sudo_debug_new_output(struct sudo_debug_instance *instance,
output->filename = strdup(debug_file->debug_file);
if (output->filename == NULL)
goto oom;
output->fd = -1;
/* Init per-subsystems settings to -1 since 0 is a valid priority. */
for (j = 0; j <= instance->max_subsystem; j++)