com php-src: Initializing optional argument description in assert(): ext/standard/assert.c
| From: | Lars Strojny | Date: | Sun, 02 Sep 2012 06:01:32 +0000 |
| Subject: | com php-src: Initializing optional argument description in assert(): ext/standard/assert.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-70095@lists.php.net to get a copy of this message | ||
Commit: 89948c7fbe487e5d75f7b02fe0c29238f556f341
Author: Lars Strojny <lstrojny@php.net> Sun, 2 Sep 2012 08:01:18 +0200
Parents: f7d51df5c65e47a5ef8a6d81f2e13044dd926492
Branches: PHP-5.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=89948c7fbe487e5d75f7b02fe0c29238f556f341
Log:
Initializing optional argument description in assert()
Changed paths:
M ext/standard/assert.c
Diff:
diff --git a/ext/standard/assert.c b/ext/standard/assert.c
index 0ff3f9b..15fbefd 100644
--- a/ext/standard/assert.c
+++ b/ext/standard/assert.c
@@ -143,7 +143,7 @@ PHP_FUNCTION(assert)
zval **assertion;
int val, description_len = 0;
char *myeval = NULL;
- char *compiled_string_description, *description;
+ char *compiled_string_description, *description = NULL;
if (! ASSERTG(active)) {
RETURN_TRUE;