From 966a82c776ad02c33b6aa81b0509795eea096d05 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 20 Jan 2011 06:32:59 +0000 Subject: [PATCH] - no need of assert here --- main/streams/cast.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/streams/cast.c b/main/streams/cast.c index 6c3854b9341..debbd827074 100644 --- a/main/streams/cast.c +++ b/main/streams/cast.c @@ -366,8 +366,9 @@ PHPAPI FILE * _php_stream_open_wrapper_as_file(char *path, char *mode, int optio /* {{{ php_stream_make_seekable */ PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STREAMS_DC TSRMLS_DC) { - assert(newstream != NULL); - + if (newstream == NULL) { + return PHP_STREAM_FAILED; + } *newstream = NULL; if (((flags & PHP_STREAM_FORCE_CONVERSION) == 0) && origstream->ops->seek != NULL) {