aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'builtin.cpp')
-rw-r--r--builtin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.cpp b/builtin.cpp
index 4604190c..e7c49285 100644
--- a/builtin.cpp
+++ b/builtin.cpp
@@ -2655,7 +2655,7 @@ static int builtin_read(parser_t &parser, wchar_t **argv)
}
}
- if (buff.size() < 2 && eof)
+ if (buff.empty() && eof)
{
exit_res = 1;
}