summaryrefslogtreecommitdiff
path: root/main/streams/memory.c
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-02-24 23:13:40 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-02-24 23:13:40 +0000
commit4759048194bc656a0f07a4850483bbf628b1eddf (patch)
tree2cd9fcd0fcbc381fd7960496254b19090f0dc687 /main/streams/memory.c
parent14db9ea88d6916e57368744dc8b50abca6f9236c (diff)
downloadphp-git-4759048194bc656a0f07a4850483bbf628b1eddf.tar.gz
Removed unnecessary asserts
Diffstat (limited to 'main/streams/memory.c')
-rw-r--r--main/streams/memory.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/main/streams/memory.c b/main/streams/memory.c
index d953d342f0..3446a9906d 100644
--- a/main/streams/memory.c
+++ b/main/streams/memory.c
@@ -215,7 +215,6 @@ PHPAPI php_stream *_php_stream_memory_create(int mode STREAMS_DC TSRMLS_DC)
php_stream *stream;
self = emalloc(sizeof(*self));
- assert(self != NULL);
self->data = NULL;
self->fpos = 0;
self->fsize = 0;
@@ -432,7 +431,6 @@ PHPAPI php_stream *_php_stream_temp_create(int mode, size_t max_memory_usage STR
php_stream *stream;
self = ecalloc(1, sizeof(*self));
- assert(self != NULL);
self->smax = max_memory_usage;
self->mode = mode;
stream = php_stream_alloc(&php_stream_temp_ops, self, 0, "r+b");