Fixed a compiler warning

This commit is contained in:
Ilia Alshanetsky 2010-08-27 19:43:08 +00:00
parent cde759600b
commit 9cad594085

View File

@ -329,9 +329,8 @@ PHPAPI char *php_session_create_id(PS_CREATE_SID_ARGS) /* {{{ */
efree(buf);
if (PS(entropy_length) > 0) {
unsigned char rbuf[2048];
#ifdef PHP_WIN32
unsigned char rbuf[2048];
size_t toread = PS(entropy_length);
if (php_win32_get_random_bytes(rbuf, (size_t) toread) == SUCCESS){