diff options
author | Joe Orton <jorton@apache.org> | 2011-03-17 17:42:16 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2011-03-17 17:42:16 +0100 |
commit | 828cb4661eeb57b685d0eb72c195813556e95895 (patch) | |
tree | dac418cc3235ed2c08d6a837cfe577b0282872dd /support | |
parent | Close PR 50861 where enabling and disabling of buffered (diff) | |
download | apache2-828cb4661eeb57b685d0eb72c195813556e95895.tar.xz apache2-828cb4661eeb57b685d0eb72c195813556e95895.zip |
* support/ab.c (test): Catch more calloc failures.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082586 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r-- | support/ab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/ab.c b/support/ab.c index 75c514680f..59461dd53b 100644 --- a/support/ab.c +++ b/support/ab.c @@ -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"); } |