Skip to content

Commit 0125fbf

Browse files
committed
Fix blacklist_path_length uninitialized error
1 parent 4834cfe commit 0125fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/zend_accelerator_blacklist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static void zend_accel_blacklist_loadone(zend_blacklist *blacklist, char *filena
241241
{
242242
char buf[MAXPATHLEN + 1], real_path[MAXPATHLEN + 1], *blacklist_path = NULL;
243243
FILE *fp;
244-
int path_length, blacklist_path_length;
244+
int path_length, blacklist_path_length = 0;
245245

246246
if ((fp = fopen(filename, "r")) == NULL) {
247247
zend_accel_error(ACCEL_LOG_WARNING, "Cannot load blacklist file: %s\n", filename);

0 commit comments

Comments
 (0)