1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 06:32:49 +02:00
This commit is contained in:
Dmitry Stogov
2013-03-01 22:57:53 +04:00
parent 28cd079adb
commit 68c265ce37

View File

@@ -45,7 +45,7 @@ static int create_segments(size_t requested_size, zend_shared_segment_posix ***s
*shared_segments_p = (zend_shared_segment_posix **) calloc(1, sizeof(zend_shared_segment_posix) + sizeof(void *));
if (!*shared_segments_p) {
*error_in = "calloc";
rerurn ALLOC_FAILURE;
return ALLOC_FAILURE;
}
shared_segment = (zend_shared_segment_posix *)((char *)(*shared_segments_p) + sizeof(void *));
(*shared_segments_p)[0] = shared_segment;