Skip to content

Commit 89948c7

Browse files
committed
Initializing optional argument description in assert()
1 parent f7d51df commit 89948c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/assert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ PHP_FUNCTION(assert)
143143
zval **assertion;
144144
int val, description_len = 0;
145145
char *myeval = NULL;
146-
char *compiled_string_description, *description;
146+
char *compiled_string_description, *description = NULL;
147147

148148
if (! ASSERTG(active)) {
149149
RETURN_TRUE;

0 commit comments

Comments
 (0)