diff --git a/src/files.c b/src/files.c index 682278176c8bf6dc95e30acfecf39edeedb483c4..fee60c4bea3a5199f3c8ad7adf5f0db920ec4358 100644 --- a/src/files.c +++ b/src/files.c @@ -2351,7 +2351,7 @@ int readable_dir(const char *path) /* If dir is NULL, don't do closedir(), since that changes errno. */ if (dir != NULL) closedir(dir); - return dir != NULL; + return (dir != NULL); } /* Initialize the browser code, including the list of files in *path */ diff --git a/src/nano.c b/src/nano.c index 11b5b2ce2ddcc9fa139c684e5ffed4493ecc0a4f..79dde4365301a38408fe6f09e8e0826bd95d9a9a 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1094,7 +1094,7 @@ bool open_pipe(const char *command) dup2(fd[1], fileno(stderr)); /* If execl() returns at all, there was an error. */ - execl("/bin/sh", "sh", "-c", command, 0); + execl("/bin/sh", "sh", "-c", command, NULL); exit(0); }