Quiet a few harmless cppcheck warnings.

This commit is contained in:
Todd C. Miller
2021-01-06 13:01:10 -07:00
parent 84b3a1dae1
commit 92c88d4105
9 changed files with 22 additions and 19 deletions

View File

@@ -123,7 +123,7 @@ resolve_editor(const char *ed, size_t edlen, int nfiles, char **files,
int *argc_out, char ***argv_out, char * const *allowlist)
{
char **nargv = NULL, *editor = NULL, *editor_path = NULL;
const char *cp, *ep, *tmp;
const char *tmp, *cp, *ep = NULL;
const char *edend = ed + edlen;
struct stat user_editor_sb;
int nargc;