diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-04 15:11:43 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-04 15:11:43 -0700 |
commit | c67702a4989c450acd2c9f02fb65aa757f74880f (patch) | |
tree | f1def9222481625273521642d68db72c46b866b1 /builtin.cpp | |
parent | 5880cd88c8e378efb3c76e0cfdff99dce0edf810 (diff) |
Cleaned up lots of typecasts, simplified some string handling
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin.cpp b/builtin.cpp index c4b36ed6..30a69b73 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -2218,8 +2218,7 @@ static int builtin_read( parser_t &parser, wchar_t **argv ) while( !finished ) { char b; - int read_res = read_blocked( builtin_stdin, &b, 1 ); - if( read_res <= 0 ) + if( read_blocked( builtin_stdin, &b, 1 ) <= 0 ) { eof=1; break; |