Branch: Tag:

2015-04-17

2015-04-17 16:07:24 by Martin Nilsson <nilsson@opera.com>

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) {