Eliminate dead store found by clang checker.

This commit is contained in:
Todd C. Miller
2014-01-15 06:13:23 -07:00
parent 2de0115cb8
commit 5f88e95bc9

View File

@@ -995,12 +995,12 @@ export_sudoers(const char *sudoers_path, const char *export_path,
warning(U_("unable to open %s"), sudoers_path); warning(U_("unable to open %s"), sudoers_path);
goto done; goto done;
} }
if (strcmp(export_path, "-") == 0) { if (strcmp(export_path, "-") != 0) {
export_path = "stdout"; if ((export_fp = fopen(export_path, "w")) == NULL) {
} else if ((export_fp = fopen(export_path, "w")) == NULL) { if (!quiet)
if (!quiet) warning(U_("unable to open %s"), export_path);
warning(U_("unable to open %s"), export_path); goto done;
goto done; }
} }
init_parser(sudoers_path, quiet); init_parser(sudoers_path, quiet);
if (sudoersparse() && !parse_error) { if (sudoersparse() && !parse_error) {