]> granicus.if.org Git - php/commitdiff
Removed unnecessary asserts
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 24 Feb 2003 23:13:40 +0000 (23:13 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 24 Feb 2003 23:13:40 +0000 (23:13 +0000)
main/streams/memory.c

index d953d342f0855fc112d6d1e973126f5c59be9fb8..3446a9906d30a21d8aecbd4fc3b3362eccd184fe 100644 (file)
@@ -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");