diff options
author | Wez Furlong <wez@php.net> | 2002-04-12 18:17:19 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-04-12 18:17:19 +0000 |
commit | e2f00a130f9df2234ab755696b9dc46f53646890 (patch) | |
tree | 46c08740a4699715b88131bcc31fd7fabefccc43 /main/php_streams.h | |
parent | 22815419f8c5da902971d3aa12f2cbfcc3b41aff (diff) | |
download | php-git-e2f00a130f9df2234ab755696b9dc46f53646890.tar.gz |
fix segfault
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-x | main/php_streams.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index c5ef2acfdc..d562d6e953 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -400,7 +400,7 @@ PHPAPI php_stream_context *php_stream_context_set(php_stream *stream, php_stream php_stream_notification_notify((context), PHP_STREAM_NOTIFY_PROGRESS, PHP_STREAM_NOTIFY_SEVERITY_INFO, \ NULL, 0, (bsofar), (bmax), NULL TSRMLS_CC); } } while(0) -#define php_stream_notify_progress_init(context, sofar, bmax) do { if ((context)->notifier) { \ +#define php_stream_notify_progress_init(context, sofar, bmax) do { if ((context) && (context)->notifier) { \ (context)->notifier->progress = (sofar); \ (context)->notifier->progress_max = (bmax); \ (context)->notifier->mask |= PHP_STREAM_NOTIFIER_PROGRESS; \ |