- initialize opts zval ptr to NULL as it's an optional parameter
authorMichael Wallner <mike@php.net>
Sat, 7 Jan 2006 17:46:48 +0000 (17:46 +0000)
committerMichael Wallner <mike@php.net>
Sat, 7 Jan 2006 17:46:48 +0000 (17:46 +0000)
http_request_object.c

index c7d19c211517c16afaf4e8b868e7884603837f87..74dbe4f18d8a5be8a6e2951894d1ac1a6f71081f 100644 (file)
@@ -629,7 +629,7 @@ STATUS _http_request_object_responsehandler(http_request_object *obj, zval *this
        _http_request_object_set_options_subr(INTERNAL_FUNCTION_PARAM_PASSTHRU, (key), sizeof(key), (ow))
 static inline void _http_request_object_set_options_subr(INTERNAL_FUNCTION_PARAMETERS, char *key, size_t len, int overwrite)
 {
-       zval *old_opts, *new_opts, *opts, **entry;
+       zval *old_opts, *new_opts, *opts = NULL, **entry;
        getObject(http_request_object, obj);
 
        if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|a/!", &opts)) {