iliaa Thu Apr 28 19:49:07 2005 EDT Modified files: /php-src/ext/mysqli mysqli_warning.c Log: e* allocation cannot fail. http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli_warning.c?r1=1.2&r2=1.3&ty=u Index: php-src/ext/mysqli/mysqli_warning.c diff -u php-src/ext/mysqli/mysqli_warning.c:1.2 php-src/ext/mysqli/mysqli_warning.c:1.3 --- php-src/ext/mysqli/mysqli_warning.c:1.2 Sun Jan 16 14:28:55 2005 +++ php-src/ext/mysqli/mysqli_warning.c Thu Apr 28 19:49:04 2005 @@ -51,9 +51,7 @@ return NULL; } - if (!(w = (MYSQLI_WARNING *)ecalloc(sizeof(MYSQLI_WARNING), 1))) { - return NULL; - } + w = (MYSQLI_WARNING *)ecalloc(sizeof(MYSQLI_WARNING), 1); w->warning_count = cwarnings; w->result = mysql_store_result(mysql);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php