svn: /php/php-src/ branches/PHP_5_3/ext/session/session.c trunk/ext/session/session.c
| From: | Ilia Alshanetsky | Date: | Fri, 27 Aug 2010 19:43:08 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/session/session.c trunk/ext/session/session.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-63385@lists.php.net to get a copy of this message | ||
iliaa Fri, 27 Aug 2010 19:43:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=302851
Log:
Fixed a compiler warning
Changed paths:
U php/php-src/branches/PHP_5_3/ext/session/session.c
U php/php-src/trunk/ext/session/session.c
Modified: php/php-src/branches/PHP_5_3/ext/session/session.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/session/session.c 2010-08-27 12:45:36 UTC (rev 302850)
+++ php/php-src/branches/PHP_5_3/ext/session/session.c 2010-08-27 19:43:08 UTC (rev 302851)
@@ -403,9 +403,8 @@
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){
Modified: php/php-src/trunk/ext/session/session.c
===================================================================
--- php/php-src/trunk/ext/session/session.c 2010-08-27 12:45:36 UTC (rev 302850)
+++ php/php-src/trunk/ext/session/session.c 2010-08-27 19:43:08 UTC (rev 302851)
@@ -329,9 +329,8 @@
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){