]> granicus.if.org Git - php/commitdiff
Fixed bug #23657 (Missing initialization in browscap module init)
authorIlia Alshanetsky <iliaa@php.net>
Fri, 16 May 2003 15:13:47 +0000 (15:13 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 16 May 2003 15:13:47 +0000 (15:13 +0000)
ext/standard/browscap.c

index e1a398f9423b3467005aeab7cd2b20a52a7fd08b..40c44ebdee1c02e2aa37c822745ae0980e0ebb78 100644 (file)
@@ -156,6 +156,8 @@ PHP_MINIT_FUNCTION(browscap)
                }
 
                fh.handle.fp = VCWD_FOPEN(browscap, "r");
+               fh.opened_path = NULL;
+               fh.free_filename = 0;
                if (!fh.handle.fp) {
                        php_error_docref(NULL TSRMLS_CC, E_CORE_WARNING, "Cannot open '%s' for reading", browscap);
                        return FAILURE;