diff options
author | Pierre Joye <pajoye@php.net> | 2011-01-20 06:32:59 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2011-01-20 06:32:59 +0000 |
commit | 7f3100976f837f03ad5bca1c38b81075e2fcac16 (patch) | |
tree | fe453b940cbbac8b6f220f5b5d407a1494c5526f /main/streams/cast.c | |
parent | 28d95f8e6350005ff45680c276cde189714f0819 (diff) | |
download | php-git-7f3100976f837f03ad5bca1c38b81075e2fcac16.tar.gz |
- no need of assert here
Diffstat (limited to 'main/streams/cast.c')
-rw-r--r-- | main/streams/cast.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/streams/cast.c b/main/streams/cast.c index 6c3854b934..debbd82707 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) { |