Permalink
Browse files

Initializing optional argument description in assert()

  • Loading branch information...
lstrojny committed Sep 2, 2012
1 parent 4e84f72 commit e212de4a4492cd9dce8e45133604aa87083a0a92
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/standard/assert.c
View
@@ -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;

0 comments on commit e212de4

Please sign in to comment.