httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r1082586 - /httpd/httpd/trunk/support/ab.c
Date Thu, 17 Mar 2011 16:42:16 GMT
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");
     }
 



Mime
View raw message