aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 1cd9ff2c4d..fcffe64595 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -1091,8 +1091,9 @@ char_u *get_cmd_output(char_u *cmd, char_u *infile, ShellOpts flags,
{
char_u *buffer = NULL;
- if (check_restricted() || check_secure())
+ if (check_secure()) {
return NULL;
+ }
// get a name for the temp file
char_u *tempname = vim_tempname();