From 7e2a99d0916f3d5fd398a39028e49f2a0df68f3a Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Fri, 16 May 2003 15:13:47 +0000 Subject: [PATCH] Fixed bug #23657 (Missing initialization in browscap module init) --- ext/standard/browscap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/browscap.c b/ext/standard/browscap.c index e1a398f942..40c44ebdee 100644 --- a/ext/standard/browscap.c +++ b/ext/standard/browscap.c @@ -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; -- 2.50.1