You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2011/03/17 17:42:16 UTC
svn commit: r1082586 - /httpd/httpd/trunk/support/ab.c
Author: jorton
Date: Thu Mar 17 16:42:16 2011
New Revision: 1082586
URL: http://svn.apache.org/viewvc?rev=1082586&view=rev
Log:
* support/ab.c (test): Catch more calloc failures.
Modified:
httpd/httpd/trunk/support/ab.c
Modified: httpd/httpd/trunk/support/ab.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/ab.c?rev=1082586&r1=1082585&r2=1082586&view=diff
==============================================================================
--- httpd/httpd/trunk/support/ab.c (original)
+++ httpd/httpd/trunk/support/ab.c Thu Mar 17 16:42:16 2011
@@ -1606,7 +1606,7 @@ static void test(void)
* XXX: would be nice.
*/
stats = calloc(requests, sizeof(struct data));
- if (stats == NULL) {
+ if (stats == NULL || con == NULL) {
err("Cannot allocate memory for result statistics");
}