pike.git/
src/
post_modules/
Nettle/
hash.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2015-04-17
2015-04-17 16:07:24 by Martin Nilsson <nilsson@opera.com>
c79cf760393e804aa06fe61c1046fe25e087bf83 (
3
lines) (+
2
/-
1
)
[
Show
|
Annotate
]
Branch:
8.1
Ensure bytes is not null rather than looking at args. Not an issue. CID 1294626.
211:
read_buffer=xalloc(8192); THREADS_ALLOW();
-
if(
args==2
&& bytes->u.integer>-1) {
+
if(
bytes
&& bytes->u.integer>-1) {
int bytes_left = bytes->u.integer; int read_bytes = MINIMUM(8192, bytes_left); while(read_bytes>0 && (len=fd_read(fd, read_buffer, read_bytes))>0) {