From: Ilia Alshanetsky Date: Thu, 28 Apr 2005 23:49:04 +0000 (+0000) Subject: e* allocation cannot fail. X-Git-Tag: php-5.0.1b1~382 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8abc1d3b9c07bc5f325f369eb3e29d0cc6e06b89;p=php e* allocation cannot fail. --- diff --git a/ext/mysqli/mysqli_warning.c b/ext/mysqli/mysqli_warning.c index 301150e513..9016857e14 100644 --- a/ext/mysqli/mysqli_warning.c +++ b/ext/mysqli/mysqli_warning.c @@ -51,9 +51,7 @@ MYSQLI_WARNING *php_get_warnings(MYSQL *mysql) 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);