aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorsethdelliott <devnull@localhost>2010-07-19 20:38:40 +0000
committersethdelliott <devnull@localhost>2010-07-19 20:38:40 +0000
commit01ca972b6cfee8e51bd44072030b607bb4452078 (patch)
treeaba994728091e0d23093472ce1befbae43304a19 /src/main.c
parent8430ad49e64446668b1305341129e173dc3c2eb0 (diff)
downloadiperf3-01ca972b6cfee8e51bd44072030b607bb4452078.tar.gz
Updated autoconf stuff and fixed a small error with ierror()
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 71e2c0c..8cc64fb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -76,6 +76,10 @@ main(int argc, char **argv)
#endif
test = iperf_new_test();
+ if (!test) {
+ ierror("create new test error");
+ exit(1);
+ }
iperf_defaults(test); /* sets defaults */
if (iperf_parse_arguments(test, argc, argv) < 0) {