]> granicus.if.org Git - php/commitdiff
MFH: initialize factory
authorAntony Dovgal <tony2001@php.net>
Fri, 19 May 2006 10:24:42 +0000 (10:24 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 19 May 2006 10:24:42 +0000 (10:24 +0000)
main/streams.c

index 8fc81e9cdd6890cda4f1afe25c7939815eae5359..b188766745913c0ed4bfda3455047faf8bad5cea 100755 (executable)
@@ -445,7 +445,7 @@ PHPAPI int php_stream_filter_unregister_factory(const char *filterpattern TSRMLS
  * charsets (for example) but still be able to provide them all as filters */
 PHPAPI php_stream_filter *php_stream_filter_create(const char *filtername, const char *filterparams, int filterparamslen, int persistent TSRMLS_DC)
 {
-       php_stream_filter_factory *factory;
+       php_stream_filter_factory *factory = NULL;
        php_stream_filter *filter = NULL;
        int n;
        char *period;