diff options
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1567,8 +1567,7 @@ static bool cmd_read(Filerange *range, const char *argv[]) { text_insert(vis->win->text, pos, data, info.st_size); pos += info.st_size; err: - if (fd > 2) - close(fd); + close(fd); if (data && data != MAP_FAILED) munmap(data, info.st_size); } |
