Skip to content

Commit 769caa6

Browse files
committed
Fix blacklist_path_length uninitialized error
1 parent 4834cfe commit 769caa6

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
@@ -291,7 +291,7 @@ static void zend_accel_blacklist_loadone(zend_blacklist *blacklist, char *filena
291291
}
292292

293293
path_dup = zend_strndup(pbuf, path_length);
294-
if (blacklist_path) {
294+
if (blacklist_path && blacklist_path_length) {
295295
expand_filepath_ex(path_dup, real_path, blacklist_path, blacklist_path_length);
296296
} else {
297297
expand_filepath(path_dup, real_path);

0 commit comments

Comments
 (0)