diff --git a/src/funcs.c b/src/funcs.c index f1184f82..2d0e3285 100644 --- a/src/funcs.c +++ b/src/funcs.c @@ -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; diff --git a/src/utils.c b/src/utils.c index 0ee73c40..dcaa630a 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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) {