diff options
author | Wez Furlong <wez@php.net> | 2002-10-15 16:45:26 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-10-15 16:45:26 +0000 |
commit | 2f6952c9364b0fdbfd94f81722dbcf903fca697d (patch) | |
tree | f6a53596b0cb6f8bd95f9cf992c6385e1b7f10a4 /main | |
parent | c2624f42698f768c4e06f5529d6b89f7784c1682 (diff) | |
download | php-git-2f6952c9364b0fdbfd94f81722dbcf903fca697d.tar.gz |
Nope, that last one wasn't a leak in main/streams.c, it was
file_get_contents misinterpreting the result...
Diffstat (limited to 'main')
-rwxr-xr-x | main/streams.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams.c b/main/streams.c index a8ddccb1c5..8597d6bf33 100755 --- a/main/streams.c +++ b/main/streams.c @@ -1028,7 +1028,7 @@ PHPAPI size_t _php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen #endif srcfile = mmap(NULL, maxlen, PROT_READ, MAP_SHARED, srcfd, 0); - if (srcfile != (void*)MAP_FAILED && ret > 0) { + if (srcfile != (void*)MAP_FAILED) { *buf = pemalloc_rel_orig(maxlen + 1, persistent); |