Fix cppcheck warnings.

This commit is contained in:
Dianne Skoll
2025-10-07 15:36:26 -04:00
parent 1ee2c32374
commit 690d5bd429
2 changed files with 2 additions and 2 deletions

View File

@@ -2414,7 +2414,7 @@ static int FShell(func_info *info)
/* Redirect stdin to /dev/null */
int stdin_dup;
int devnull = -1;
int devnull;
DBufInit(&buf);
if (RunDisabled) return E_RUN_DISABLED;

View File

@@ -37,7 +37,7 @@ static char const DontEscapeMe[] =
int system1(char const *cmd)
{
int stdin_dup = dup(STDIN_FILENO);
int devnull = -1;
int devnull;
int r;
if (stdin_dup >= 0) {