com php-src: Fixed uninitialized value: ext/date/php_date.c
| From: | Dmitry Stogov | Date: | Thu, 06 Mar 2014 12:09:00 +0000 |
| Subject: | com php-src: Fixed uninitialized value: ext/date/php_date.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77703@lists.php.net to get a copy of this message | ||
Commit: dfe1fd73bf127de368a3098b3e5b251e7d7397b4
Author: Dmitry Stogov <dmitry@zend.com> Thu, 6 Mar 2014 16:09:00 +0400
Parents: 60eac8b8605d4a917217cf88cab842967e24bbd7
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=dfe1fd73bf127de368a3098b3e5b251e7d7397b4
Log:
Fixed uninitialized value
Changed paths:
M ext/date/php_date.c
Diff:
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index cc6bab2..adfb2ca 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -4005,6 +4005,7 @@ zval *date_interval_read_property(zval *object, zval *member, int type, const
ze
//??? ALLOC_INIT_ZVAL(retval);
//??? Z_SET_REFCOUNT_P(retval, 0);
+ retval = rv;
if (value != -99999) {
ZVAL_LONG(retval, value);